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:
@@ -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
|
||||
'';
|
||||
|
||||
0
pkgs/pkgs-lib/tests/testfile
Normal file
0
pkgs/pkgs-lib/tests/testfile
Normal file
Reference in New Issue
Block a user