summaryrefslogtreecommitdiffstats
path: root/tests/qemu-iotests/176
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2019-03-07 15:58:38 +0100
committerKevin Wolf2019-03-08 12:26:45 +0100
commit11a82d14293cd66f428f535741717ff338c0722b (patch)
treed58877662e23aae2dce03286741add9cafe650ef /tests/qemu-iotests/176
parenttests/bios-tables: Improve portability by searching bash in the $PATH (diff)
downloadqemu-11a82d14293cd66f428f535741717ff338c0722b.tar.gz
qemu-11a82d14293cd66f428f535741717ff338c0722b.tar.xz
qemu-11a82d14293cd66f428f535741717ff338c0722b.zip
qemu-iotests: Improve portability by searching bash in the $PATH
Bash is not always installed as /bin/bash. In particular on OpenBSD, the package installs it in /usr/local/bin. Use the 'env' shebang to search bash in the $PATH. Patch created mechanically by running: $ git grep -lE '#! ?/bin/bash' -- tests/qemu-iotests \ | while read f; do \ sed -i 's|^#!.\?/bin/bash$|#!/usr/bin/env bash|' $f; \ done Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/176')
-rwxr-xr-xtests/qemu-iotests/1762
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/176 b/tests/qemu-iotests/176
index 4ecd5894a3..50df4c00fa 100755
--- a/tests/qemu-iotests/176
+++ b/tests/qemu-iotests/176
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Commit changes into backing chains and empty the top image if the
# backing image is not explicitly specified.