0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

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
This commit is contained in:
Léo Gaspard 2018-11-11 17:41:11 +09:00
parent 921b63134a
commit 6c68fbd4e1
No known key found for this signature in database
GPG key ID: 8A55848B6090F9CF
26 changed files with 133 additions and 53 deletions

View file

@ -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";