From 534e5629af1235c0f44959761916ffbe85b4a4ec Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Sat, 1 Oct 2022 16:39:43 +0200 Subject: [PATCH] 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`. --- nixos/tests/make-test-python.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/tests/make-test-python.nix b/nixos/tests/make-test-python.nix index 7a96f538d8d..c3bbd674237 100644 --- a/nixos/tests/make-test-python.nix +++ b/nixos/tests/make-test-python.nix @@ -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