nixosTests.installed-tests: allow passing extra makeTest args

For example, extra meta tags.
This commit is contained in:
Jan Tojnar
2019-12-07 00:58:30 +01:00
parent 175359cfac
commit 973c2fcf3d
+18 -3
View File
@@ -29,8 +29,14 @@ let
# Extra flags to pass to gnome-desktop-testing-runner. # Extra flags to pass to gnome-desktop-testing-runner.
, testRunnerFlags ? "" , testRunnerFlags ? ""
}:
makeTest rec { # Extra attributes to pass to makeTest.
# They will be recursively merged into the attrset created by this function.
, ...
}@args:
makeTest
(recursiveUpdate
rec {
name = tested.name; name = tested.name;
meta = { meta = {
@@ -58,7 +64,16 @@ let
"gnome-desktop-testing-runner ${testRunnerFlags} -d '${tested.installedTests}/share'" "gnome-desktop-testing-runner ${testRunnerFlags} -d '${tested.installedTests}/share'"
) )
''; '';
}; }
(removeAttrs args [
"tested"
"testConfig"
"preTestScript"
"withX11"
"testRunnerFlags"
])
);
in in