pkgs-lib: Make tests independent of Nix file contents

Before, all of these tests would be rebuilt whenever formats.nix is
modified, but there's no need for this :)
This commit is contained in:
Silvan Mosberger
2025-02-17 18:42:59 +01:00
parent 5f30488d37
commit 6c4b0e2858
2 changed files with 6 additions and 6 deletions

View File

@@ -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
'';

View File