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:
Robert Hensing 2022-10-01 16:39:43 +02:00
parent e94718ba34
commit 534e5629af

View file

@ -6,4 +6,6 @@ f: {
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