tests: extract fn instantiateTestsFromStr
Fn `instantiateTests` now takes an array of strings. It is used in the following commit.
This commit is contained in:
+9
-10
@@ -459,16 +459,15 @@ in {
|
||||
};
|
||||
});
|
||||
|
||||
instantiateTestsFromStr = testNamesStr: instantiateTests (lib.splitString " " testNamesStr);
|
||||
|
||||
instantiateTests = testNames:
|
||||
let
|
||||
testNames' = lib.splitString " " testNames;
|
||||
in
|
||||
map (name:
|
||||
let
|
||||
test = tests.${name};
|
||||
in
|
||||
builtins.seq (builtins.trace "Evaluating test '${name}'" test.outPath)
|
||||
test
|
||||
) testNames';
|
||||
map (name:
|
||||
let
|
||||
test = tests.${name};
|
||||
in
|
||||
builtins.seq (builtins.trace "Evaluating test '${name}'" test.outPath)
|
||||
test
|
||||
) testNames;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user