summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rangehttpserver
diff options
context:
space:
mode:
authorAnna Gillert <anna.gillert@cyberus-technology.de>2022-04-07 09:39:33 +0200
committerAnna Gillert <anna.gillert@cyberus-technology.de>2022-04-21 10:54:00 +0200
commitf7e89a59da9f4531c21df0736b5fdfeba19d7c77 (patch)
treed2afba5f6a8538bdbb4a468dfa4082ca5cd5a8cb /pkgs/development/python-modules/rangehttpserver
parent7586158ac902878712f6511263ad075abca8c16f (diff)
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 ```
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions