about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2022-10-01 16:39:43 +0200
committerRobert Hensing <robert@roberthensing.nl>2022-10-01 16:43:42 +0200
commit534e5629af1235c0f44959761916ffbe85b4a4ec (patch)
treee9b06ade947d4089f9ab4234e36e59ea0c4d4faa /nixos
parente94718ba34908553c969798224d4082eb9fd258d (diff)
downloadnixlib-534e5629af1235c0f44959761916ffbe85b4a4ec.tar
nixlib-534e5629af1235c0f44959761916ffbe85b4a4ec.tar.gz
nixlib-534e5629af1235c0f44959761916ffbe85b4a4ec.tar.bz2
nixlib-534e5629af1235c0f44959761916ffbe85b4a4ec.tar.lz
nixlib-534e5629af1235c0f44959761916ffbe85b4a4ec.tar.xz
nixlib-534e5629af1235c0f44959761916ffbe85b4a4ec.tar.zst
nixlib-534e5629af1235c0f44959761916ffbe85b4a4ec.zip
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`.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/make-test-python.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/tests/make-test-python.nix b/nixos/tests/make-test-python.nix
index 7a96f538d8d7..c3bbd6742372 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