about summary refs log tree commit diff
path: root/nixos/tests/chromium.nix
diff options
context:
space:
mode:
authorLéo Gaspard <leo@gaspard.io>2018-11-11 17:41:11 +0900
committerLéo Gaspard <leo@gaspard.io>2018-11-11 23:11:45 +0900
commit6c68fbd4e1f8beac39cb1f499ff90c78256262d6 (patch)
treeaac6a33afe1ed7f4ebf408cc83903ea8a66531da /nixos/tests/chromium.nix
parent921b63134a0181533b3673a48f96bb3b75ac3a9f (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/chromium.nix')
-rw-r--r--nixos/tests/chromium.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/tests/chromium.nix b/nixos/tests/chromium.nix
index e5097609fb272..af5db2a3dbe1f 100644
--- a/nixos/tests/chromium.nix
+++ b/nixos/tests/chromium.nix
@@ -1,5 +1,6 @@
 { system ? builtins.currentSystem
-, pkgs ? import ../.. { inherit system; }
+, config ? {}
+, pkgs ? import ../.. { inherit system config; }
 , channelMap ? {
     stable = pkgs.chromium;
     beta   = pkgs.chromiumBeta;
@@ -7,7 +8,7 @@
   }
 }:
 
-with import ../lib/testing.nix { inherit system; };
+with import ../lib/testing.nix { inherit system pkgs; };
 with pkgs.lib;
 
 mapAttrs (channel: chromiumPkg: makeTest rec {