diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-12-11 07:34:35 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-12-11 07:34:35 +0100 |
commit | aa6741135cb7e78ab038eee798067f2df32bb6d9 (patch) | |
tree | c89fdc06e3ba3918aa1915366bedbf5756fcd4e2 /modules/profiles/tests.nix | |
parent | f48fe4b7f4509c919e3897e83490da34a095d0fc (diff) |
modules: Make requiresTests a list of paths.
Unfortunately, we went into trouble and the Hydra machine not only consumed lots of ram during evaluation but it also triggered a bunch of evaluation errors because the available tests were strictly evaluated. Using attribute paths consisting of plain strings doesn't have the same problem, even though they look a bit uglier. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules/profiles/tests.nix')
-rw-r--r-- | modules/profiles/tests.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/profiles/tests.nix b/modules/profiles/tests.nix index 66ea76e5..811d6cf8 100644 --- a/modules/profiles/tests.nix +++ b/modules/profiles/tests.nix @@ -1,10 +1,10 @@ -{ config, lib, tests, ... }: +{ config, lib, ... }: with lib; let which = if config.networking.useNetworkd then "networkd" else "scripted"; - networkTests = map (attr: getAttr attr tests.nixos.networking.${which}) [ + networkTests = map (name: ["nixos" "networking" which]) [ "static" "dhcpSimple" "dhcpOneIf" "bond" "bridge" "macvlan" "sit" "vlan" ]; |