nixpkgs/nixos/lib/test-driver/test_driver
Anna Gillert f7e89a59da nixos/test-driver: fix missing shellopts in execute
Without this fix, setting the shellopts in `machine.execute` is
inconsitent.  When no timeout is used, shellopts `set -euo pipefail` are
applied to the command as expected. When a timeout is specified, the
shellopts are not applied to the command itself (which is called inside
a `sh -c` that doesn't inherit the shellopts) but rather to the
`timeout` command, leading to the following full command:

```bash
(set -euo pipefail; timeout 900 sh -c 'cmd') | (base64 --wrap 0; echo)\n
```

With this fix, this is the command we get:

```bash
timeout 900 sh -c 'set -euo pipefail; false | true') | (base64 --wrap 0; echo)\n
```
2022-04-21 10:54:00 +02:00
..
__init__.py add --no-interactive flag 2022-01-26 11:27:01 +01:00
driver.py nixos/test-driver: highlight driver log lines 2022-04-14 11:54:21 +02:00
logger.py nixos/test-driver: highlight driver log lines 2022-04-14 11:54:21 +02:00
machine.py nixos/test-driver: fix missing shellopts in execute 2022-04-21 10:54:00 +02:00
polling_condition.py nixos/test-driver: remove unused imports, add pylint unused-import check 2022-01-02 23:12:21 +01:00
vlan.py