diff options
author | Joachim Schiele <js@lastlog.de> | 2015-07-12 12:09:40 +0200 |
---|---|---|
committer | Joachim Schiele <js@lastlog.de> | 2015-07-12 12:29:51 +0200 |
commit | 0731489953dfd6f5a9f6949729f5383a517b2e18 (patch) | |
tree | 0e26976afd1817f1dc714663557693d8bc61a58c /nixos/lib | |
parent | 7e021a0fd636587ff7908387f8c2fd97d34c772a (diff) |
all tests: added meta.maintainers section
Diffstat (limited to 'nixos/lib')
-rw-r--r-- | nixos/lib/testing.nix | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/nixos/lib/testing.nix b/nixos/lib/testing.nix index ee254ae187fd..59d05f87d5fe 100644 --- a/nixos/lib/testing.nix +++ b/nixos/lib/testing.nix @@ -122,12 +122,16 @@ rec { ${lib.optionalString (builtins.length vms == 1) "--set USE_SERIAL 1"} ''; # " - test = runTests driver; + passMeta = drv: drv // lib.optionalAttrs (t ? meta) { + meta = (drv.meta or {}) // t.meta; + }; - report = releaseTools.gcovReport { coverageRuns = [ test ]; }; - - in (if makeCoverageReport then report else test) // { inherit nodes driver test; }; + test = passMeta (runTests driver); + report = passMeta (releaseTools.gcovReport { coverageRuns = [ test ]; }); + in (if makeCoverageReport then report else test) // { + inherit nodes driver test; + }; runInMachine = { drv |