about summary refs log tree commit diff
path: root/modules/profiles/tests.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-12-11 07:34:35 +0100
committeraszlig <aszlig@redmoonstudios.org>2015-12-11 07:34:35 +0100
commitaa6741135cb7e78ab038eee798067f2df32bb6d9 (patch)
treec89fdc06e3ba3918aa1915366bedbf5756fcd4e2 /modules/profiles/tests.nix
parentf48fe4b7f4509c919e3897e83490da34a095d0fc (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.nix4
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"
   ];