diff --git a/pkgs/pkgs-lib/tests/formats.nix b/pkgs/pkgs-lib/tests/formats.nix index 523e19b2d01b..2a2138bdbd10 100644 --- a/pkgs/pkgs-lib/tests/formats.nix +++ b/pkgs/pkgs-lib/tests/formats.nix @@ -96,7 +96,7 @@ in runBuildTests { str = "foo"; attrs.foo = null; list = [ null null ]; - path = ./formats.nix; + path = ./testfile; }; expected = '' { @@ -111,7 +111,7 @@ in runBuildTests { null ], "null": null, - "path": "${./formats.nix}", + "path": "${./testfile}", "str": "foo", "true": true } @@ -128,7 +128,7 @@ in runBuildTests { str = "foo"; attrs.foo = null; list = [ null null ]; - path = ./formats.nix; + path = ./testfile; no = "no"; time = "22:30:00"; }; @@ -142,7 +142,7 @@ in runBuildTests { - null 'no': 'no' 'null': null - path: ${./formats.nix} + path: ${./testfile} str: foo time: '22:30:00' 'true': true @@ -547,7 +547,7 @@ in runBuildTests { 1 null ]; - path = ./formats.nix; + path = ./testfile; }; expected = '' attrs { @@ -561,7 +561,7 @@ in runBuildTests { null ] "null": null - "path": "${./formats.nix}" + "path": "${./testfile}" "str": "foo" "true": true ''; diff --git a/pkgs/pkgs-lib/tests/testfile b/pkgs/pkgs-lib/tests/testfile new file mode 100644 index 000000000000..e69de29bb2d1