diff --git a/.editorconfig b/.editorconfig
index c9711d519408..ebb66b07945c 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -101,3 +101,7 @@ end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
charset = unset
+
+[lib/tests/*.plist]
+indent_style = tab
+insert_final_newline = unset
diff --git a/lib/tests/misc.nix b/lib/tests/misc.nix
index d7173bbf3a3d..2cb8596703fc 100644
--- a/lib/tests/misc.nix
+++ b/lib/tests/misc.nix
@@ -936,52 +936,7 @@ runTests {
};
};
};
- expected = { value = ''
-
-
-
- nested
-
- values
-
- attrs
-
- foo b/ar
- baz
-
- bool
-
- emptyattrs
-
-
-
- emptylist
-
-
-
- emptystring
-
- float
- 0.133700
- int
- 42
- list
-
- 3
- 4
- test
-
- newlinestring
-
-
- path
- /foo
- string
- fn''${o}"r\d
-
-
-
-''; };
+ expected = { value = builtins.readFile ./test-to-plist-expected.plist; };
};
# CLI
diff --git a/lib/tests/test-to-plist-expected.plist b/lib/tests/test-to-plist-expected.plist
new file mode 100644
index 000000000000..df0528a60767
--- /dev/null
+++ b/lib/tests/test-to-plist-expected.plist
@@ -0,0 +1,46 @@
+
+
+
+
+ nested
+
+ values
+
+ attrs
+
+ foo b/ar
+ baz
+
+ bool
+
+ emptyattrs
+
+
+
+ emptylist
+
+
+
+ emptystring
+
+ float
+ 0.133700
+ int
+ 42
+ list
+
+ 3
+ 4
+ test
+
+ newlinestring
+
+
+ path
+ /foo
+ string
+ fn${o}"r\d
+
+
+
+
\ No newline at end of file