nixos/test-driver: also passthru driverInteractive

This commit is contained in:
Patrick Hilhorst 2022-01-02 23:48:56 +01:00
parent c003ae2dea
commit d4dc638d77
No known key found for this signature in database
GPG key ID: 3BB083304DADC0FF
3 changed files with 17 additions and 17 deletions

View file

@ -17,7 +17,7 @@ rec {
inherit pkgs;
# Run an automated test suite in the given virtual network.
runTests = { driver, pos }:
runTests = { driver, driverInteractive, pos }:
stdenv.mkDerivation {
name = "vm-test-run-${driver.testName}";
@ -34,7 +34,7 @@ rec {
'';
passthru = driver.passthru // {
inherit driver;
inherit driver driverInteractive;
};
inherit pos; # for better debugging
@ -224,7 +224,7 @@ rec {
passMeta = drv: drv // lib.optionalAttrs (t ? meta) {
meta = (drv.meta or { }) // t.meta;
};
in passMeta (runTests { inherit driver pos; });
in passMeta (runTests { inherit driver pos driverInteractive; });
in
test // {