lol

Merge pull request #176099 from hercules-ci/nixosTests.allDrivers

`nixosTests`: Add `allDrivers` for development purposes

authored by

Robert Hensing and committed by
GitHub
fddafcc0 cf3cb3c2

+18 -3
+18 -3
nixos/tests/all-tests.nix
··· 26 26 featureFlags.minimalModules = {}; 27 27 }; 28 28 evalMinimalConfig = module: nixosLib.evalModules { modules = [ module ]; }; 29 - in 30 - { 29 + 30 + allDrivers = getDrivers tests; 31 + 32 + getDrivers = ts: 33 + if isDerivation ts 34 + then ts.driver or null 35 + else if isAttrs ts 36 + then recurseIntoAttrs (mapAttrs (k: getDrivers) ts) 37 + else null; 38 + 39 + tests = { 40 + 41 + # for typechecking of the scripts and evaluation of 42 + # the nodes, without running VMs. 43 + inherit allDrivers; 44 + 31 45 _3proxy = handleTest ./3proxy.nix {}; 32 46 acme = handleTest ./acme.nix {}; 33 47 adguardhome = handleTest ./adguardhome.nix {}; ··· 620 634 zookeeper = handleTest ./zookeeper.nix {}; 621 635 zrepl = handleTest ./zrepl.nix {}; 622 636 zsh-history = handleTest ./zsh-history.nix {}; 623 - } 637 + }; 638 + in tests