diff options
author | Marijan Petričević <marijan.petricevic94@gmail.com> | 2022-01-25 13:23:37 +0100 |
---|---|---|
committer | Marijan Petričević <marijan.petricevic94@gmail.com> | 2022-01-26 10:46:45 +0100 |
commit | 75de3397fd9b4e93752ecc6123deec8521aa0532 (patch) | |
tree | 1600b4ce867fb5b29f2473e449b97d702f8006d4 /nixos | |
parent | c94eb27aeb7173849cd680b59fc5296a1418882e (diff) |
nixos/tests: fix #146169
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/lib/testing-python.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/lib/testing-python.nix b/nixos/lib/testing-python.nix index a670404681367..885783b1d0b1e 100644 --- a/nixos/lib/testing-python.nix +++ b/nixos/lib/testing-python.nix @@ -51,6 +51,7 @@ rec { , enableOCR ? false , skipLint ? false , passthru ? {} + , interactive ? false }: let # Reifies and correctly wraps the python test driver for @@ -139,7 +140,8 @@ rec { wrapProgram $out/bin/nixos-test-driver \ --set startScripts "''${vmStartScripts[*]}" \ --set testScript "$out/test-script" \ - --set vlans '${toString vlans}' + --set vlans '${toString vlans}' \ + ${if interactive then "--add-flags --interactive" else ""} ''); # Make a full-blown test @@ -217,6 +219,7 @@ rec { testName = name; qemu_pkg = pkgs.qemu; nodes = nodes pkgs.qemu; + interactive = true; }; test = |