Merge pull request #193917 from hercules-ci/fix-make-test-python

nixos/tests/make-test-python.nix: Restore stand-alone invocation
This commit is contained in:
Maximilian Bosch 2022-10-01 20:30:51 +02:00 committed by GitHub
commit 78cbebb361
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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