test-driver: revert stderr nullpipe

Removes 2>/dev/null which re-adds stderr output breaking execute
This commit is contained in:
Maciej Krüger 2023-09-21 14:59:45 +02:00
parent 7c8b8bd3e4
commit 03762aa42a
No known key found for this signature in database
GPG key ID: 0D948CE19CF49C5F

View file

@ -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())