diff options
author | aszlig <aszlig@redmoonstudios.org> | 2016-03-20 22:20:39 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2016-03-20 22:20:39 +0100 |
commit | 3bd71b135bb6f3379b3e1cfba148224b14123464 (patch) | |
tree | cae15733ca13c34c088a6ed5b22452cf460d453b /nixos/tests | |
parent | fb65a0048a941653572596cd4e2a8c11ce026be4 (diff) |
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')
-rw-r--r-- | nixos/tests/chromium.nix | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/nixos/tests/chromium.nix b/nixos/tests/chromium.nix index 974af6888b69..dfa65ab73912 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 |