mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
lib/tests/misc: don't hardcode store directory
(cherry picked from commit 76a7b54083)
This commit is contained in:
committed by
github-actions[bot]
parent
e888a09931
commit
0e04293d59
@@ -787,12 +787,8 @@ runTests {
|
||||
};
|
||||
|
||||
testSplitStringsDerivation = {
|
||||
expr = take 3 (strings.splitString "/" dummyDerivation);
|
||||
expected = [
|
||||
""
|
||||
"nix"
|
||||
"store"
|
||||
];
|
||||
expr = lib.dropEnd 1 (strings.splitString "/" dummyDerivation);
|
||||
expected = strings.splitString "/" builtins.storeDir;
|
||||
};
|
||||
|
||||
testSplitVersionSingle = {
|
||||
|
||||
Reference in New Issue
Block a user