about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--lib/get-tests.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/get-tests.nix b/lib/get-tests.nix
index 22d85b12..0f93a5bb 100644
--- a/lib/get-tests.nix
+++ b/lib/get-tests.nix
@@ -7,9 +7,10 @@ with import "${nixpkgs}/lib";
     upstreamTests = (import "${nixpkgs}/nixos/release.nix" {
       inherit nixpkgs;
     }).tests;
-    isTestOrSystems = attr: attr ? test || attr ? ${system};
+    isTestOrJob = attr: (attr.type or null) == "derivation" || attr ? test;
+    isTestOrSystems = attr: isTestOrJob attr || attr ? ${system};
     cond = attr: !isTestOrSystems attr;
-    reduce = attr: if attr ? test then attr else attr.${system};
+    reduce = attr: if isTestOrJob attr then attr else attr.${system};
   in mapAttrsRecursiveCond cond (path: reduce) upstreamTests;
 
   vuizvui = import ../tests {