nixos/tests/make-test-python.nix: Restore stand-alone invocation
It's an ugly solution (like before), but some of us want to nix-build nixos/tests/foo.nix This PR makes that possible once more for tests are wired with `make-test-python.nix`.
This commit is contained in:
parent
e94718ba34
commit
534e5629af
|
@ -6,4 +6,6 @@ f: {
|
||||||
|
|
||||||
with import ../lib/testing-python.nix { inherit system pkgs; };
|
with import ../lib/testing-python.nix { inherit system pkgs; };
|
||||||
|
|
||||||
makeTest (if pkgs.lib.isFunction f then f (args // { inherit pkgs; inherit (pkgs) lib; }) else f)
|
let testConfig = makeTest (if pkgs.lib.isFunction f then f (args // { inherit pkgs; inherit (pkgs) lib; }) else f);
|
||||||
|
in testConfig.test # For nix-build
|
||||||
|
// testConfig # For all-tests.nix
|
||||||
|
|
Loading…
Reference in a new issue