You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lib/test-driver: fix reading command output for other distros
When running the test-driver on other distros (e.g., via
[https://github.com/numtide/nix-vm-test/](nix-vm-test)) executing a command
can fail if the driver receives both stdout and stderr.
The test-driver’s logic for reading output currently assumes it will only read
base64 encoded stdout, so any extra stderr content leads to unexpected
failures.
This commit fixes the issue by redirecting the stderr to /dev/null, ensuring
the driver only sees stdout.
The tradeoff is losing stderr messages in the machine logs. Users can work
around this by redirecting stderr to stdout in the command they are sending
to the machine:
```python
machine.execute("some_command 2>&1")
```
Related issues:
- numtide/nix-vm-test#84
- numtide/nix-vm-test#5
0 commit comments