mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-12 05:16:25 +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:
parent
921b63134a
commit
6c68fbd4e1
26 changed files with 133 additions and 53 deletions
|
@ -1,9 +1,13 @@
|
|||
{ system ? builtins.currentSystem
|
||||
, config ? {}
|
||||
, networkExpr
|
||||
}:
|
||||
|
||||
let nodes = import networkExpr; in
|
||||
|
||||
with import ../../../../lib/testing.nix { inherit system; };
|
||||
with import ../../../../lib/testing.nix {
|
||||
inherit system;
|
||||
pkgs = import ../.. { inherit system config; }
|
||||
};
|
||||
|
||||
(makeTest { inherit nodes; testScript = ""; }).driver
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue