nixos/all-tests: Use ? in discoverTests
Exactly equivalent
This commit is contained in:
parent
957b920dfd
commit
0295ad1904
@ -21,7 +21,7 @@ let
|
||||
discoverTests =
|
||||
val:
|
||||
if isAttrs val then
|
||||
if hasAttr "test" val then
|
||||
if (val ? test) then
|
||||
callTest val
|
||||
else
|
||||
mapAttrs (n: s: if n == "passthru" then s else discoverTests s) val
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user