about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2018-11-13 10:28:18 +0100
committeraszlig <aszlig@nix.build>2018-11-13 10:33:59 +0100
commit1e6b853a5de4fb49d3979bb2555b5d431e3d7d00 (patch)
treec84290def843ff69e26d6d548d5ec53a892783bf /tests
parent5485d192c21e3b1f59ef50ab787de77d9ced3564 (diff)
test/make-test: Add pkgs argument to testing.nix
Since NixOS/nixpkgs@6c68fbd4e1f8beac39cb1f499ff90c78256262d6 a pkgs
argument is required for nixos/lib/testing.nix.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'tests')
-rw-r--r--tests/make-test.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/make-test.nix b/tests/make-test.nix
index 4534b991..cdc763c7 100644
--- a/tests/make-test.nix
+++ b/tests/make-test.nix
@@ -7,12 +7,12 @@ testFun:
 
   lib = import "${nixpkgsPath}/lib";
 
+  pkgs = import nixpkgsPath { inherit system; };
+
   testLib = import "${nixpkgsPath}/nixos/lib/testing.nix" {
-    inherit system;
+    inherit pkgs system;
   };
 
-  pkgs = import nixpkgsPath { inherit system; };
-
   testArgs = if builtins.isFunction testFun then testFun (args // {
     pkgs = pkgs // {
       vuizvui = import ../pkgs { inherit pkgs; };