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/networking.nix | |
parent | 921b63134a0181533b3673a48f96bb3b75ac3a9f (diff) | |
download | nixpkgs-6c68fbd4e1f8beac39cb1f499ff90c78256262d6.tar nixpkgs-6c68fbd4e1f8beac39cb1f499ff90c78256262d6.tar.gz nixpkgs-6c68fbd4e1f8beac39cb1f499ff90c78256262d6.tar.bz2 nixpkgs-6c68fbd4e1f8beac39cb1f499ff90c78256262d6.tar.lz nixpkgs-6c68fbd4e1f8beac39cb1f499ff90c78256262d6.tar.xz nixpkgs-6c68fbd4e1f8beac39cb1f499ff90c78256262d6.tar.zst nixpkgs-6c68fbd4e1f8beac39cb1f499ff90c78256262d6.zip |
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/networking.nix')
-rw-r--r-- | nixos/tests/networking.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/tests/networking.nix b/nixos/tests/networking.nix index d1d4fd41dda..6843e8b2636 100644 --- a/nixos/tests/networking.nix +++ b/nixos/tests/networking.nix @@ -1,8 +1,10 @@ { system ? builtins.currentSystem +, config ? {} +, pkgs ? import ../.. { inherit system config; }, # bool: whether to use networkd in the tests , networkd }: -with import ../lib/testing.nix { inherit system; }; +with import ../lib/testing.nix { inherit system pkgs; }; with pkgs.lib; let |