about summary refs log tree commit diff
path: root/nixos/tests/misc.nix
diff options
context:
space:
mode:
authorRaito Bezarius <masterancpp@gmail.com>2024-05-12 18:15:52 +0200
committerRaito Bezarius <masterancpp@gmail.com>2024-05-12 18:15:52 +0200
commitb35ccb7fda289490130aa0372af05629174c2c11 (patch)
treeb3f02af46395b03b868e6040d73642bc85d1e3c3 /nixos/tests/misc.nix
parent07ca9423448536db6f2a87172d1a4baab552075b (diff)
nixos/tests/misc: call the tester `test` to be `callTest`-ed
Otherwise, this will destroy the release machinery to collect all the
systems.

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
Diffstat (limited to 'nixos/tests/misc.nix')
-rw-r--r--nixos/tests/misc.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/tests/misc.nix b/nixos/tests/misc.nix
index aa9b9fbe29a52..83e0f46be3ecf 100644
--- a/nixos/tests/misc.nix
+++ b/nixos/tests/misc.nix
@@ -9,7 +9,10 @@ let
   };
 
   testsForPackage = args: lib.recurseIntoAttrs {
-    miscFeatures = testMiscFeatures args;
+    # If the attribute is not named 'test'
+    # You will break all the universe on the release-*.nix side of things.
+    # `discoverTests` relies on `test` existence to perform a `callTest`.
+    test = testMiscFeatures args;
     passthru.override = args': testsForPackage (args // args');
   };