From 03762aa42ae7398e2f57aa5fd903b518017e5000 Mon Sep 17 00:00:00 2001 From: Maciej Krüger Date: Thu, 21 Sep 2023 14:59:45 +0200 Subject: test-driver: revert stderr nullpipe Removes 2>/dev/null which re-adds stderr output breaking execute --- nixos/lib/test-driver/test_driver/machine.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nixos/lib') diff --git a/nixos/lib/test-driver/test_driver/machine.py b/nixos/lib/test-driver/test_driver/machine.py index 06d952d64f4d..2afcbc95c667 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()) -- cgit 1.4.1