summary refs log tree commit diff
path: root/nixos/tests/chromium.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-03-20 22:20:39 +0100
committeraszlig <aszlig@redmoonstudios.org>2016-03-20 22:20:39 +0100
commit3bd71b135bb6f3379b3e1cfba148224b14123464 (patch)
treecae15733ca13c34c088a6ed5b22452cf460d453b /nixos/tests/chromium.nix
parentfb65a0048a941653572596cd4e2a8c11ce026be4 (diff)
downloadnixpkgs-3bd71b135bb6f3379b3e1cfba148224b14123464.tar
nixpkgs-3bd71b135bb6f3379b3e1cfba148224b14123464.tar.gz
nixpkgs-3bd71b135bb6f3379b3e1cfba148224b14123464.tar.bz2
nixpkgs-3bd71b135bb6f3379b3e1cfba148224b14123464.tar.lz
nixpkgs-3bd71b135bb6f3379b3e1cfba148224b14123464.tar.xz
nixpkgs-3bd71b135bb6f3379b3e1cfba148224b14123464.tar.zst
nixpkgs-3bd71b135bb6f3379b3e1cfba148224b14123464.zip
nixos/tests/chromium: Allow overriding channel map
This has been the case before e45c211, but it turns out that it's very
useful to override the channel packages so we can run tests with
different Chromium build options.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'nixos/tests/chromium.nix')
-rw-r--r--nixos/tests/chromium.nix15
1 files changed, 9 insertions, 6 deletions
diff --git a/nixos/tests/chromium.nix b/nixos/tests/chromium.nix
index 974af6888b6..dfa65ab7391 100644
--- a/nixos/tests/chromium.nix
+++ b/nixos/tests/chromium.nix
@@ -1,4 +1,11 @@
-{ system ? builtins.currentSystem }:
+{ system ? builtins.currentSystem
+, pkgs ? import ../.. {}
+, channelMap ? {
+    stable = pkgs.chromium;
+    beta   = pkgs.chromiumBeta;
+    dev    = pkgs.chromiumDev;
+  }
+}:
 
 with import ../lib/testing.nix { inherit system; };
 with pkgs.lib;
@@ -160,8 +167,4 @@ mapAttrs (channel: chromiumPkg: makeTest rec {
 
     $machine->shutdown;
   '';
-}) {
-  stable = pkgs.chromium;
-  beta   = pkgs.chromiumBeta;
-  dev    = pkgs.chromiumDev;
-}
+}) channelMap