summary refs log tree commit diff
path: root/nixos/lib/test-driver
diff options
context:
space:
mode:
authorMaciej Krüger <mkg20001@gmail.com>2023-09-21 14:59:45 +0200
committerMaciej Krüger <mkg20001@gmail.com>2023-09-22 15:14:13 +0200
commit03762aa42ae7398e2f57aa5fd903b518017e5000 (patch)
tree044f075e3cba09d095bad71479ad1fda6b4890ad /nixos/lib/test-driver
parent7c8b8bd3e43a93c3c8e3d2e0ba1839538d37ca2d (diff)
downloadnixpkgs-03762aa42ae7398e2f57aa5fd903b518017e5000.tar
nixpkgs-03762aa42ae7398e2f57aa5fd903b518017e5000.tar.gz
nixpkgs-03762aa42ae7398e2f57aa5fd903b518017e5000.tar.bz2
nixpkgs-03762aa42ae7398e2f57aa5fd903b518017e5000.tar.lz
nixpkgs-03762aa42ae7398e2f57aa5fd903b518017e5000.tar.xz
nixpkgs-03762aa42ae7398e2f57aa5fd903b518017e5000.tar.zst
nixpkgs-03762aa42ae7398e2f57aa5fd903b518017e5000.zip
test-driver: revert stderr nullpipe
Removes 2>/dev/null which re-adds stderr output breaking execute
Diffstat (limited to 'nixos/lib/test-driver')
-rw-r--r--nixos/lib/test-driver/test_driver/machine.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/lib/test-driver/test_driver/machine.py b/nixos/lib/test-driver/test_driver/machine.py
index 06d952d64f4..2afcbc95c66 100644
--- a/nixos/lib/test-driver/test_driver/machine.py
+++ b/nixos/lib/test-driver/test_driver/machine.py
@@ -582,7 +582,9 @@ class Machine:
 
         # While sh is bash on NixOS, this is not the case for every distro.
         # We explicitly call bash here to allow for the driver to boot other distros as well.
-        out_command = f"{timeout_str} bash -c {shlex.quote(command)} 2>/dev/null | (base64 -w 0; echo)\n"
+        out_command = (
+            f"{timeout_str} bash -c {shlex.quote(command)} | (base64 -w 0; echo)\n"
+        )
 
         assert self.shell
         self.shell.send(out_command.encode())