GitLab maintenance scheduled for Tomorrow, 2019-09-24, from 12:00 to 13:00 CT - Services will be unavailable during this time.

Commit 617ff97b authored by Valentin Reis's avatar Valentin Reis

Adding overrides to test.nix

parent f4a97dc8
Pipeline #4838 failed
{ pkgs ? import <nixpkgs> {},
testName ? "base"
testName ? "base",
nrm-override ? null,
containers-override ? null,
libnrm-override ? null
}:
let
testEnv = spec: (import spec.argotest.src {
nrm-src=spec.nrm.src;
libnrm-src=spec.libnrm.src;
containers-src=spec.containers.src;
nrm-src = if (isNull nrm-override) then spec.nrm.src else nrm-override;
libnrm-src = if (isNull libnrm-override) then spec.libnrm.src else libnrm-override;
containers-src = if (isNull containers-override) then spec.containers.src else containers-override;
}).test ;
allTests = import ./tests/default.nix {};
in testEnv allTests."${testName}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment