diff options
author | Léo Gaspard <leo@gaspard.io> | 2018-11-11 17:41:11 +0900 |
---|---|---|
committer | Léo Gaspard <leo@gaspard.io> | 2018-11-11 23:11:45 +0900 |
commit | 6c68fbd4e1f8beac39cb1f499ff90c78256262d6 (patch) | |
tree | aac6a33afe1ed7f4ebf408cc83903ea8a66531da /nixos/tests/predictable-interface-names.nix | |
parent | 921b63134a0181533b3673a48f96bb3b75ac3a9f (diff) |
tests: refactor to carry the package set as an argument
This way, the package set will be possible to pass without re-importing all the time
Diffstat (limited to 'nixos/tests/predictable-interface-names.nix')
-rw-r--r-- | nixos/tests/predictable-interface-names.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nixos/tests/predictable-interface-names.nix b/nixos/tests/predictable-interface-names.nix index 0d73436c1c3f5..8306abb8c42f9 100644 --- a/nixos/tests/predictable-interface-names.nix +++ b/nixos/tests/predictable-interface-names.nix @@ -1,7 +1,10 @@ -{ system ? builtins.currentSystem }: +{ system ? builtins.currentSystem, + config ? {}, + pkgs ? import ../.. { inherit system config; } +}: let - inherit (import ../lib/testing.nix { inherit system; }) makeTest pkgs; + inherit (import ../lib/testing.nix { inherit system pkgs; }) makeTest; in pkgs.lib.listToAttrs (pkgs.lib.crossLists (predictable: withNetworkd: { name = pkgs.lib.optionalString (!predictable) "un" + "predictable" + pkgs.lib.optionalString withNetworkd "Networkd"; |