summary refs log tree commit diff
path: root/nixos/lib/testing-python.nix
diff options
context:
space:
mode:
authorMarijan Petričević <marijan.petricevic94@gmail.com>2022-01-25 13:23:37 +0100
committerMarijan Petričević <marijan.petricevic94@gmail.com>2022-01-26 10:46:45 +0100
commit75de3397fd9b4e93752ecc6123deec8521aa0532 (patch)
tree1600b4ce867fb5b29f2473e449b97d702f8006d4 /nixos/lib/testing-python.nix
parentc94eb27aeb7173849cd680b59fc5296a1418882e (diff)
downloadnixpkgs-75de3397fd9b4e93752ecc6123deec8521aa0532.tar
nixpkgs-75de3397fd9b4e93752ecc6123deec8521aa0532.tar.gz
nixpkgs-75de3397fd9b4e93752ecc6123deec8521aa0532.tar.bz2
nixpkgs-75de3397fd9b4e93752ecc6123deec8521aa0532.tar.lz
nixpkgs-75de3397fd9b4e93752ecc6123deec8521aa0532.tar.xz
nixpkgs-75de3397fd9b4e93752ecc6123deec8521aa0532.tar.zst
nixpkgs-75de3397fd9b4e93752ecc6123deec8521aa0532.zip
nixos/tests: fix #146169
Diffstat (limited to 'nixos/lib/testing-python.nix')
-rw-r--r--nixos/lib/testing-python.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/lib/testing-python.nix b/nixos/lib/testing-python.nix
index a6704046813..885783b1d0b 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 =