]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
qemu-iotests: Improve portability by searching bash in the $PATH
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 7 Mar 2019 14:58:38 +0000 (15:58 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 8 Mar 2019 11:26:45 +0000 (12:26 +0100)
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>
185 files changed:
tests/qemu-iotests/001
tests/qemu-iotests/002
tests/qemu-iotests/003
tests/qemu-iotests/004
tests/qemu-iotests/005
tests/qemu-iotests/007
tests/qemu-iotests/008
tests/qemu-iotests/009
tests/qemu-iotests/010
tests/qemu-iotests/011
tests/qemu-iotests/012
tests/qemu-iotests/013
tests/qemu-iotests/014
tests/qemu-iotests/015
tests/qemu-iotests/017
tests/qemu-iotests/018
tests/qemu-iotests/019
tests/qemu-iotests/020
tests/qemu-iotests/021
tests/qemu-iotests/022
tests/qemu-iotests/023
tests/qemu-iotests/024
tests/qemu-iotests/025
tests/qemu-iotests/026
tests/qemu-iotests/027
tests/qemu-iotests/028
tests/qemu-iotests/029
tests/qemu-iotests/031
tests/qemu-iotests/032
tests/qemu-iotests/033
tests/qemu-iotests/034
tests/qemu-iotests/035
tests/qemu-iotests/036
tests/qemu-iotests/037
tests/qemu-iotests/038
tests/qemu-iotests/039
tests/qemu-iotests/042
tests/qemu-iotests/043
tests/qemu-iotests/046
tests/qemu-iotests/047
tests/qemu-iotests/048
tests/qemu-iotests/049
tests/qemu-iotests/050
tests/qemu-iotests/051
tests/qemu-iotests/052
tests/qemu-iotests/053
tests/qemu-iotests/054
tests/qemu-iotests/058
tests/qemu-iotests/059
tests/qemu-iotests/060
tests/qemu-iotests/061
tests/qemu-iotests/062
tests/qemu-iotests/063
tests/qemu-iotests/064
tests/qemu-iotests/066
tests/qemu-iotests/067
tests/qemu-iotests/068
tests/qemu-iotests/069
tests/qemu-iotests/070
tests/qemu-iotests/071
tests/qemu-iotests/072
tests/qemu-iotests/073
tests/qemu-iotests/074
tests/qemu-iotests/075
tests/qemu-iotests/076
tests/qemu-iotests/077
tests/qemu-iotests/078
tests/qemu-iotests/079
tests/qemu-iotests/080
tests/qemu-iotests/081
tests/qemu-iotests/082
tests/qemu-iotests/083
tests/qemu-iotests/084
tests/qemu-iotests/085
tests/qemu-iotests/086
tests/qemu-iotests/087
tests/qemu-iotests/088
tests/qemu-iotests/089
tests/qemu-iotests/090
tests/qemu-iotests/091
tests/qemu-iotests/092
tests/qemu-iotests/094
tests/qemu-iotests/095
tests/qemu-iotests/097
tests/qemu-iotests/098
tests/qemu-iotests/099
tests/qemu-iotests/101
tests/qemu-iotests/102
tests/qemu-iotests/103
tests/qemu-iotests/104
tests/qemu-iotests/105
tests/qemu-iotests/106
tests/qemu-iotests/107
tests/qemu-iotests/108
tests/qemu-iotests/109
tests/qemu-iotests/110
tests/qemu-iotests/111
tests/qemu-iotests/112
tests/qemu-iotests/113
tests/qemu-iotests/114
tests/qemu-iotests/115
tests/qemu-iotests/116
tests/qemu-iotests/117
tests/qemu-iotests/119
tests/qemu-iotests/120
tests/qemu-iotests/121
tests/qemu-iotests/122
tests/qemu-iotests/123
tests/qemu-iotests/125
tests/qemu-iotests/126
tests/qemu-iotests/127
tests/qemu-iotests/128
tests/qemu-iotests/130
tests/qemu-iotests/131
tests/qemu-iotests/133
tests/qemu-iotests/134
tests/qemu-iotests/135
tests/qemu-iotests/137
tests/qemu-iotests/138
tests/qemu-iotests/140
tests/qemu-iotests/141
tests/qemu-iotests/142
tests/qemu-iotests/143
tests/qemu-iotests/144
tests/qemu-iotests/145
tests/qemu-iotests/146
tests/qemu-iotests/150
tests/qemu-iotests/153
tests/qemu-iotests/154
tests/qemu-iotests/156
tests/qemu-iotests/157
tests/qemu-iotests/158
tests/qemu-iotests/159
tests/qemu-iotests/160
tests/qemu-iotests/161
tests/qemu-iotests/162
tests/qemu-iotests/170
tests/qemu-iotests/171
tests/qemu-iotests/172
tests/qemu-iotests/173
tests/qemu-iotests/174
tests/qemu-iotests/175
tests/qemu-iotests/176
tests/qemu-iotests/177
tests/qemu-iotests/178
tests/qemu-iotests/179
tests/qemu-iotests/181
tests/qemu-iotests/182
tests/qemu-iotests/183
tests/qemu-iotests/184
tests/qemu-iotests/185
tests/qemu-iotests/186
tests/qemu-iotests/187
tests/qemu-iotests/188
tests/qemu-iotests/189
tests/qemu-iotests/190
tests/qemu-iotests/191
tests/qemu-iotests/192
tests/qemu-iotests/195
tests/qemu-iotests/197
tests/qemu-iotests/198
tests/qemu-iotests/200
tests/qemu-iotests/201
tests/qemu-iotests/204
tests/qemu-iotests/214
tests/qemu-iotests/215
tests/qemu-iotests/217
tests/qemu-iotests/220
tests/qemu-iotests/221
tests/qemu-iotests/223
tests/qemu-iotests/225
tests/qemu-iotests/226
tests/qemu-iotests/227
tests/qemu-iotests/229
tests/qemu-iotests/231
tests/qemu-iotests/232
tests/qemu-iotests/233
tests/qemu-iotests/check
tests/qemu-iotests/common.config
tests/qemu-iotests/common.filter
tests/qemu-iotests/common.nbd
tests/qemu-iotests/common.pattern
tests/qemu-iotests/common.qemu
tests/qemu-iotests/common.rc
tests/qemu-iotests/common.tls

index 55dcbb71d995b18cb11fd09a8d87f7f3650dede2..5d266e170a90e812176583a23cbeb83f24395f3f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test simple read/write using plain bdrv_read/bdrv_write
 #
index 74572b471188b436576b57b9d2d824b32d3ef0eb..7fb85084a1f55d32333ad63b4fbe3185602eb0e0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test simple read/write using plain bdrv_pread/bdrv_pwrite
 #
index bf2595559bc7934b121bd2c4919477670563d91c..f008c57cdcbacf73fb38d4894f50d77bb45e9b2a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test simple read/write using bdrv_aio_readv/bdrv_aio_writev
 #
index 841b15dfaca08a9825ce48a75210b0d94bd9d389..64fab3e7147bf943fbf9e764a5b1bb3867dab6c7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Make sure we can't read and write outside of the image size.
 #
index 8aa4283a4d5dec67295b1e1c899de22694b5c450..2fef63af882ad05708a6cab2f35d67ad4400aba1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Make sure qemu-img can create 5TB images
 #
index b983022a7f314775664a678c81fc83b96e68291e..3ab5490db390ecc1fee68b297d06c35d097b364e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Check for one possible case of qcow2 refcount corruption.
 #
index 8dfa10bcb89aa60066527f60073b7491b4af9608..75067e36ad8789683ab336682bd802c44aae1265 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test simple asynchronous read/write operations.
 #
index 73ae09db69649a56395c1aa2ff39217c269d12a7..bc4b461122c10cc990699c70fbfa8c2a9a6a98ee 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Nolan I qcow2 corruption - incorrectly reports free clusters
 #
index 751aca9813c1344ee4193e5767342f22230db56c..6920408d28968e6ea1d30a6a6b6b8f1d2dbd9ade 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Nolan II qcow2 corruption - wrong used cluster
 #
index 35909564a91722cbd374245b8ced1d337592a125..b4c7e8f799632af4993bf73c42d22a164b2fa474 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test for AIO allocation on the same cluster
 #
index de9a5fb4d5162f9eacd19ad556f9dfd9b3638118..2c3b42d9dd0dc4704b62fc2f82cd5c46c782a3d5 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Make sure we can open read-only images
 #
index 5e1efcee28963043de3339f59b100187b04fd0f3..5cb9032f1633359749b52cd922f44f6cc6004b62 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # qcow2 pattern test, empty and compressed image - 4k cluster patterns
 #
index 9ade571a95006e47bf7d9722c3b9de25036b0616..2f728a1956c7ffd1a7254f6d66eba326f288cf10 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # qcow2 pattern test, complex patterns including compression and snapshots
 # Using patterns for 4k cluster size.
index 21f7d42c84fe7cba3407b667630f668d1ffc1ebe..5a4063e4f53a57aa1bfd6afeba33da460f4af406 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Combined test to grow the refcount table and test snapshots.
 #
index 1ac6f745025c07b3b47133613a9d12140a787979..83744f29a3f4b30f2d937e3bc57fbde01500f0a6 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Simple backing file reads
 #
index bba30a1be2c85aec658f437b2ac30794d698ee88..78169838ba5dfd949316d1297baada060f8b5502 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Merge backing file into test image when converting the image
 #
index 8f911a79c1af92d2c356e65822adee8950a7ad67..a56dd30bed604b95948528fd933d9b86e9cf2a14 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # When using a backing file for the output image in qemu-img convert,
 # the backing file clusters must not copied. The data must still be
index 6b972d082fe5d398a28a37346f39fbc37c244ab2..71fa753b4ed4b1ddb96b301bcb6b51c4381e4e67 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Commit changes to backing file
 #
index c15ebf9eb8c94d8fa0689463aa225ea76e840553..f6555f3b74d43834dccb9bf1981432082beaf5d9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test handling of invalid patterns arguments to qemu-io
 #
index 44765c7b7a11b4a5ee9bd9a2842fc5bc1d323062..b68cd64b33c6e970666968493ca6627fd71ad828 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test bdrv_load/save_vmstate using the usual patterns
 #
index c8e1b9a761bcfbd3160f434407e2d160cef59053..02ed04782071c825cbab565f92d42f6ea78feafd 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # qcow2 pattern test with various cluster sizes
 #
index 428b5c815d094144945cdd8323a7d30827cfdf81..23298c6f59238479feb9a5f7d9a539bfc539188a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Rebasing COW images
 #
index fcd4d97c17d8c05a52e23c6681ca490ff7ca4dbe..d9a4ebc5e75517d1f7bd06ac3886bb5f2676cb7e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Resizing images
 #
index 31276d9027a46fe4421faeb73c89a9f3948ef4eb..ca89ad704862e0cf860b73330de7e97eafcb465c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # qcow2 error path testing
 #
index 2c46ae1457a3d79b7874a63102b3d7f8e64ba7f8..b7df9701f736ae5d4edcbf8d06adacc7fca354ad 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test that sub-cluster allocating writes zero the rest of the cluster
 #
index a2a7c93bcdbf312b5cd3ea8cba7cca95bfdd912e..01f495912ff004d797523a3710d6043e47a91faa 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test that backing files can be smaller than the image
 #
index cf0fe0f6a6411bf106c0ff31f7a28bdc323dbcee..5f42f76cc6e8c4139fe4c009ad7c425662dec619 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # qcow2 internal snapshots/VM state tests
 #
index ac0dfaed7ddca64bf2f3481195438b7e25e9ddc0..ef92d8eee37c731246fd470d39b65b6a9aa7e1be 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test that all qcow2 header extensions survive a header rewrite
 #
index 3e86bb01119daec8503392a764053a926fe04ab1..a1757bb15e2581e8194e14d3fdbd61ae2a5bd276 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test that AIO requests are drained before an image is closed. This used
 # to segfault because the request coroutine kept running even after the
index 46b91388efad431d2bb94220c65a5bf7c487ded7..cfdf1ec2bab74d6b7e0144582587393e65a0b2a3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test aligned and misaligned write zeroes operations.
 #
index 62812cd53cbb65f5bd54e8225cb36599b178b48f..324bed28c6ff6f8da1e9d2cbe9ce9d8004be276e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test bdrv_pwrite_zeroes with backing files (see also 154)
 #
index 85d9ef7f8e197f679ed386315c4643a6b2437dd1..46aa8359365c80cbbc021934c2cde34f2ae0a87f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Let a few AIO requests run in parallel and have them access different L2
 # tables so that the cache has a chance to get used up.
index 4e76602a9307da2bd6ba16626552cae8738cec75..1b5639412998c5985a406dd1365db7681ccf8167 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test qcow2 feature bits
 #
index a11992dad20d3e8b555f536e744015cb0fffbc6f..0781bebefe64461a649a64b4f1ae9a4cc0d9c1e7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test COW from backing files
 #
index 575093e8cfd35a6e8500b23cb949890eeb3c329e..707e2d72e92dd527cf3acda860230844b58eb313 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test COW from backing files with AIO
 #
index b3c344cb27caef7f250255d5f10acdb01efdb8ad..0d4e963bd4b63daf17e2db9ac6f4f953c26ba4c6 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test qcow2 lazy refcounts
 #
index beaa3390005e910b76ab9010db5966b20faca835..a9a7fc30412ec647543266cf87d0e1ae88592f29 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test qemu-img operation on zero size images
 #
index fc9005b28feae7f317710f06f4c9d43e06889edc..9894b154ecb4ab8bcf4de71b72dc884864a81005 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test that qemu-img info --backing-chain detects infinite loops
 #
index 5e41d96daa10056be287ec3a59317ac5dea664e1..95160bea4c26e57cdfbd2ae876216cc504e0e20c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test concurrent cluster allocations
 #
index 6e776d2ce5c7927cae3bf0396e0a454f9877d6d8..ce81fc6fa7828e9cbe2a99fea57e570393d30213 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Regression test for commit b7ab0fea (which was a corruption fix,
 # despite the commit message claiming otherwise)
index 9ed04a068d263dcc0f9db814a6404e0acdb93cbc..bde408ca92ca05777e1a78520a570026d30c9f9e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 ##
 ## qemu-img compare test
 ##
index 97d8a64697a6fdf0bf0ebd2458b6a6a81d19ec2b..bc09cd67179a33789e12a489f3c1e2311db6f3e1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Check qemu-img option parsing
 #
index 963a0db97f76c8f25b7740e779f8d87af25d6e6c..dd7b2c72eb288b856a536422ff5e42e326d86ebc 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test qemu-img rebase with zero clusters
 #
index 32741d7efdf21603786ff616ed3ee48eb4fc3fd2..3b50c7f1882c4d797656ae064019f2cf65131175 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test command line configuration of block devices and driver-specific options
 #
index b992adf4ffd250985d860c57814301654e1ae335..b3a2dc1143274ee3449add0cae47a6930e1f9545 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test bdrv_read/bdrv_write using BDRV_O_SNAPSHOT
 #
index afa109c950a41c2495e02d566a033027ecfa20ac..50c62f0f563e074ea0b782ddd1bcaa8a5d8bd6b8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test qemu-img convert when image length is not a multiple of cluster size
 #
index cf88a7c76e56c15a5e9da7dfc97fb7bd4a244569..0d5e14f84745c03d49257aa3d1059fa5688bdcdb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test huge qcow2 images
 #
index d6d4f94d5d2508836d3b35c44f3634eca2e4f613..8c3212a72f42f8538feb44bd5c1b0e36477f5497 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test export internal snapshot by qemu-nbd, convert it by qemu-img.
 #
index 54d5567accf3cf24d14c90d64d169a9f8ad6834e..279aee681517e9f8ae9c6ec787f1d1920aecdd76 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for vmdk
 #
index af0588ae9a98a033190be1eb1ee4c305946b2e01..89e911400c4e519c6f5f7515cba965dba3453bd7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for image corruption (overlapping data structures) in qcow2
 #
index 1a501634193cf16341b219259d244805cce28bbb..d2e68c0203ead5b7c2c74347cacb75ab36eb62fe 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for image option amendment in qcow2.
 #
index 985fbef41ea7e1693010dbdb6e1e27b07aa521d6..ed7400fed2df83f16857d7024f8fa192fdd80e45 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for snapshotting images with unallocated zero clusters in
 # qcow2
index 041fb5c1ac7a3cc257a97b2396e094fb68797379..2d5c0ce9fb4653dc3edb453098f0b2da2f8f8c03 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # test of qemu-img convert -n - convert without creation
 #
index f55ff37ca73b932f6d4c4cddbf13c0d275ee4c3d..90673186ec39a8fe88421470ca1361564228da36 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test VHDX read/write from a sample image created with Hyper-V
 #
index 26c043711b92771a9bccc7c51d3245b2f2901159..f480986e352e76f1b55b68371c218b7fa9faa727 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for preallocated zero clusters in qcow2
 #
index 342b2b0a309e0b68fe0da673f37cea1fadbfa3c3..fda16a6b0d7dd7f34a6caee15c7870f44039ec49 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test automatic deletion of BDSes created by -drive/drive_add
 #
index f0583d52ae3319bac6530601c1de41c93bf4c2d1..881a022107d262a4e8dedb519c0a3fad04cc70e2 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for loading a saved VM state from a qcow2 image
 #
index fdee121f43a139abb1c7d64ecb0a807b773f7017..6a8e4aa22edf3688a785663bf6ea3f1d83891234 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for deleting a backing file
 #
index 78e0390f5f39aff82b4ea3fcfef93d27180babc2..cb0f927c165af3ff2304b9ba33b5418094bf9fd5 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test VHDX log replay from an image with a journal that needs to be
 # replayed
index 6e467dc1da1aac7fad94ccc7ca05eb1d11678bf4..7f3e5abd57024105883e36c42bf6fb1fa2fc2452 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for the QMP blkdebug and blkverify interfaces
 #
index 08ef29f5b4480b9df702c795d2482c25c4b374b5..6f9f247fa574cb944bdf82aaf06e6143f2982e4e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for nested image formats
 #
index 5e7f76cb7f756d7a854a54bc79189dc6dfd2c3fd..990f90acbd7f0ec87ff60875c32dbbd765dc780f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test count_contiguous_clusters in qcow2
 #
index b17866bd34a108f73df16e766b3052bf29174595..bb4ad1cc089f8ae01172b247d783eb74c36f3022 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 ##
 ## qemu-img compare test (qcow2 only ones)
 ##
index 45b8901ef018b6aed1f0b5582e8db0ec8bc0fd73..389d5675fab949416da4c82ee99f4791433e4aad 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # cloop format input validation tests
 #
index 3b5ab3fd08abf9ac2012a866eb621f9041f03cf8..0d405ef3f2d354b54ab81532948bc31545100bb5 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # parallels format input validation tests
 #
index 58fe8932b3047cfe81b199d11cb7d9c820147254..c28495208222093c39a8542b814fb20811083861 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test concurrent pread/pwrite
 #
index 68d0ea880203bb1c9a735f85e6a701c8f657de3e..54fc654d8e652c0d1a405e4cc641b1c0c496cc1c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # bochs format input validation tests
 #
index fca2f77d379939f7d37758b117cd30b041d9281c..1b6594ebefe00ac5d16c6500ec7354581414a459 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test qcow2 preallocation with different cluster_sizes
 #
index cec2376f5997d39cf829c2501f55a3d4538030aa..4bcb5021e88099f5118c57877d2e056cfeb2007b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # qcow2 format input validation tests
 #
index edf6e6172aa412a54c1fa067b25e031d7de07053..c418bab0937b655c97b6615e72dd0d715f0427d5 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test Quorum block driver
 #
index 61eec63797c39573c9056e37a3c8a088ec843247..d0afa46e9a0edd420d423966e05fda438d6239f3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test qemu-img command line parsing
 #
index 89f67db70fc808e0abb4275d720264b77b99f2f7..b270550d3ea42819bdf69f9689756b1dfd5d854a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test NBD client unexpected disconnect
 #
index e131fa9642422b001ce0bc94cf26e112957ef925..c29d7395e9808787a7a2b5934a02bac5839d3c14 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for VDI header corruption; image too large, and too many blocks.
 # Also simple test for creating dynamic and static VDI images.
index ade68ef853b4424fa321317cf79e426710f69b56..68cb6659878b3e01829ca80e0b18c2078d8a94ee 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Live snapshot tests
 #
index 3cca3687ea8ca9771afc999a43a847031194a36b..fea1a7bd8ac7ca8176f2ce67a884142212648b9a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test qemu-img progress output
 #
index f625887082220e5b32584940c02677463467d4f6..d6c861341950bf644b01bddb1257826966a5f822 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test unsupported blockdev-add cases
 #
index c5e9ab42c759e3ee5162f9c59bf85f428311bdda..b44edd0cf9139ecc85148f5805d31ce32b3ad2d3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # vpc (VHD) format input validation tests
 #
index 3165d79e2ac7cacd769755ed5dc9fe34fc0c32bf..660995490849347881254271e8f377d969618d61 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for support of JSON filenames
 #
index 1450993e15e635ccd10ac335dcb67ec5d5abb2db..193bae7d77340e4b479090a3c2cb8e352d7e7a8a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test for discarding compressed clusters on qcow2 images
 #
index 2f2f98ee64d4b2781e836e9c4eeb927f9663a3a9..d62ef18a02a6bfb46da0914a1fdc281411455df1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Live migration test
 #
index 8e318f10b9369a6ff2a954924130be6d2edf68b2..e2e0726de169b1aaf0b23ca8f03c953b7345d513 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # qcow1 format input validation tests
 #
index 7adc9b913825a5e27ed250379e37769d2156d817..0bcca7726119f3d43cebc17c4b8d386290a05cfb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for drive-mirror to NBD
 #
index 9fc47f6b877b746ac962a4b1db5548f612dc9b2b..18505b7181af8f96d7159da035953cf5d0db78a0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test for commit of larger active layer
 #
index 7234b16053fe0c5359e626369e479b404a65427f..690f3d3ce1ed2058f0d73a3ceed3280d981fc196 100755 (executable)
@@ -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
index c7977da99acdbdc938c14a36a5824ef60961f5ba..461144c831faf549cc5a87c418c02e7a6c65f1a1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test qcow2's bdrv_make_empty for images without internal snapshots
 #
index 578808b747495b80ca25118c503ea76557816d9a..ae02f27afe30af48db4887e56027c94a6c4cae6a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test valid filenames for blkdebug and blkverify representatively for
 # other protocols (such as NBD) when queried
index 3001ba3c0ad5309c26a4070b3270c4ec3ceb3b6e..a4c1b6366ae621adcf8ad3acea0a7a35b11ff519 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test short file I/O
 #
index 29a6a940e2ad3c942ac3cca4429745ba90c5b75d..cedd2b25dcfc096f090249f6b16f4befecb3993a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for qemu-io -c map and qemu-img map
 #
index 66f8167f02879a6ad0793a920e631a0f0ff2db76..6773e94d9fa683ff3b59160fe24d3bdb7e77efde 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for qcow2 metadata cache size specification
 #
index 34bb0d23baf70747c9ea67467e121d9062beda61..390167bad4071621c5e84bed4d5209970c9bc766 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test image creation with aligned and unaligned sizes
 #
index 943bda2f4f2ec4e2ce6318e970b5096ebe173b20..3b5a5968440153c4ebbc0a8c70ec1cc3f0d0a56f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Create, read, write big image
 #
index 4129fee6bc9583b68cf79f17e6610933559cdb06..ac47eaa0f5beb721852eb385b5df9e52c354e45b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test preallocated resize of raw images
 #
index 5d70ad2007921ebd032655154a70235b1e77eef4..fcd5a24dfe6fba37a2c615605ffda25f388cea21 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Tests updates of the qcow2 L1 table
 #
index 58e8ad7636e7e8dbf4bf4085113a2f97e4148591..9c08172237778ca93ec3f423b8922857f543f34f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for repairing qcow2 images which cannot be repaired using
 # the on-disk refcount structures
index b51e4616c674653ecccae1165d8e468b6c8e4d28..9897ceb6cd6a9275db2b5dfc7b1c026da4ea0f3b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test writing image headers of other formats into raw images
 #
index 185ad5437ebe56385ef633cccfbcb41b55b752fe..fad672c1aea3435a4afbd7752057705b2d163def 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for relative backing file names in complex BDS trees
 #
index e15e66ac5d7e6bb38f077039999d23d9fdb99db6..57395be64cbe8da82f7686eccb2cb6014654e0f5 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for non-existing backing file when creating a qcow2 image
 # and not specifying the size
index d67e6ebe9cfafc92d5b1f781fc4a63a1beb3f81f..6d81c75a9c963edb0f1bb622a03a232c6d286008 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test cases for different refcount_bits values
 #
index d8d78c46dcbb0f60eb0516cd50da085b6958d6ae..f2703a2c50b1ac48511dd03f61ffb87ea953df6c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for accessing creation options on image formats and
 # protocols not supporting image creation
index e17fb514cb57948c0476c280033c0eb683e10ab3..f36b88f3f3c41e11194a62387d6b9fb027d3e8a7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test invalid backing file format in qcow2 images
 #
index 0581e03c2669c7f0d7de3c5521cb6c2db58262a0..7ed347010f5aba02c496a7449b907fee7b8bcf13 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for non-self-referential qcow2 refcount blocks
 #
index f8a27b9c02b553ffcb9257a5922ec23fd957417b..941b07a1a96fa7883ef6bdd1300fd90023065d63 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test error code paths for invalid QED images
 #
index e533e230a3e79082ac8de3231dd64b67db847ac0..0af0f31c5aa4a5274d268639084886e5b142ca8f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for shared BDS between backend trees
 #
index 32810d52c9ab6bb9ed0b6b5ecaf70ac8416e4f2c..ea6770a48498b4d100d02bf68ce7ec94ba2b55d2 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # NBD test case for overriding BDRV_O_PROTOCOL by explicitly specifying
 # a driver
index 76afdf449bfd0f192a26e786800cb01884175719..ca95b9276ea2252d2c382a7a3aa9609cd313d1f3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Non-NBD test cases for overriding BDRV_O_PROTOCOL by explicitly
 # specifying a driver
index d2885c700f57385bdb8241d7413664e18302f2e7..90a0424edbb3d0134fe014b1dfe7e8f42b43b182 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test cases for qcow2 refcount table growth
 #
index eab3399dd65549987141b453f1302a8c2c219d50..85c3a8d047293b29bd5db0c2b85fce306cc0afb6 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test some qemu-img convert cases
 #
index 168b985c8b5f6016b9849b3f87ba318a104ba855..d33950eb5415e0bcf12b0dafc00c9dcba1a4bc48 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for qemu-img convert to NBD
 #
index 778c874933458dd1f263113c834e8b1d4ebc248c..212dcd8f0d57d5091c695da4c7da5cce8543d496 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test preallocated growth of qcow2 images
 #
index 91148383ad7ce705408ca07ee23c83e3421d3541..96dc048d5920f8b8a942235a13318bf4b510fa3f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Tests handling of colons in filenames (which may be confused with protocol
 # prefixes)
index c9139ed5e6c3d7befc091a88c19aab6671d39002..3e941f74d4ff5c1e54d4b1ed8f199bcf5d916103 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for mirroring with dataplane
 #
index 925f5c7e98a8c0117dd2b259c88e9751cd3e4c35..3606c4176079b52251e466e3e9afa44607f3ca3f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test that opening O_DIRECT succeeds when image file I/O produces EIO
 #
index f2f2706b2855a3dc066f2422d8373062b9a064a6..77ad2aa13a06094f26d2c8991e4862bba62eaa9c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test that temporary backing file overrides (on the command line or in
 # blockdev-add) don't replace the original path stored in the image during
index 58c25f7abe5fbcac2e027dc05ad5347772555092..27870231cfab6328fba5322468453678fbe532ce 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # parallels format validation tests (created by QEMU)
 #
index 565e0b1b6e69c5f1d47d60252f77fc830995ed38..1f6056d144963d3e08fa1a4a36dec6c8ddd151b6 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test for reopen
 #
index cacabcd28b1205f9b21a9e6352e0e882a1abc9e1..e9e3e84c2ab29af2bd721198bee2d1e432757b43 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test encrypted read/write using plain bdrv_read/bdrv_write
 #
index a18a0c72309d5d51865905873e1cadc1ab62487a..3b3d1dc2a54a9c53ad4bc9f5bfa033313ef2ecaf 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test VPC open of image with large Max Table Entries value.
 #
index 09cd4450ca5be92a228cab6c37fb8c2743185de9..0c3d2a1cf0b7eb31ef7ee8f1324460c87417fedb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test qcow2 reopen
 #
index eccbcae3a669105dbcc6975689ae383d28b3a689..f353ac8219a7588c9556616800115a1e1fcceb97 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # General test case for qcow2's image check
 #
index d4623b5a5d55f7abddf6d54cba07478ecbca17e6..b965b1dd5d76121cfc038e079be8a68a65f1c59f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for ejecting a BlockBackend with an NBD server attached to it
 #
index e2408c79888d834aa0645db9d5f6fe8882772309..2197a82d454e5e470f30f99bb65860cd2c6cad7e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for ejecting BDSs with block jobs still running on them
 #
index 5fc488f5d23f54948e35d950ddfdbe6f3e16b921..d9b98cf60a59eba972a5e27acab97d89f66a0798 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test for configuring cache modes of arbitrary nodes (requires O_DIRECT)
 #
index d6302cc06d82586dedaaaff0bb4c1a285e9a7457..c223867cb3c958b089707968a3a2ac28cfa6749c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for connecting to a non-existing NBD export name
 #
index 118c0999949d1e5105309d0507bc12d79b4122e0..15157f33d773f44f60ae7bb92195546a22c5d3ad 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # Check live snapshot, followed by active commit, and another snapshot.
 #
 # This test is to catch the error case of BZ #1300209:
index 6ce8a46f92a57548a7a3dcd942d55e61238c2496..28878dc8a1b3783356ebbde76370e0355347fc6d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test the combination of -incoming and snapshot=on
 #
index 3f61351ffe4627e6449ee9da9b4fb89d24849003..2e43abddfc5c97072f8f8fe2e897de13a1051ecf 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test VHD image format creator detection and override
 #
index 955b877efa1e85249bf99c2e74502ef029ef4c16..3b1f32197ac526d173cfe4211d53070035d239dd 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test that qemu-img convert -S 0 fully allocates the target image
 #
index 3120a61da472b9ebc56157762e0d7e45d904ba7f..c989c2495fb5977bce152557c4ebf2849e395790 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test image locking
 #
index 4a4abf0589009096ba1fc9c6c30bce4354dd7a57..d68f66b9e05867df4c2fe91e356a760881ecafe1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # qcow2 specific bdrv_pwrite_zeroes tests with backing files (complements 034)
 #
index f97f96f6668111d36108f6a08b5385ce32aabb5a..8d134029c6e45f67caa3e72b3a30ec0edb35a0e3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Tests oVirt-like storage migration:
 #  - Create snapshot
index 6fb26596ada093c3ed8072a767350d0b786ac53e..69b25cab3033972ddbafaa43dc788c7c29228cef 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test command line configuration of block devices with qdev
 #
index d277ddcc9435ba47993e7ce8e8d9e201c161f507..8c0928a7f95651edb2731e1571ac4308a32b9ad1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test encrypted read/write using backing files
 #
index e74b2739dea611629e0d22a35242531ebe464939..29066eebde8c57ee8e31d54c6d54cb41b5e7fbc0 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env bash
 #
 # qemu-img dd test with different block sizes
 #
index 92fff45d104502f5d5ecd36079c5f0359b9ae29b..df89d3864b8815e3a7c856415bf6687b4d267de8 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env bash
 #
 # qemu-img dd test for the skip option
 #
index 180df17ad68aab42b8190db10f9ec097c19aee22..456a4bd8c4cb54c9c0d295f83bedab298da3daeb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test reopening a backing image after block-stream and block-commit
 #
index ef02d844a209366d83c23f2a20305a404aa73a3c..2e9947fd9ab977743d6db1b736d1cd4f5286b63e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for specifying runtime options of the wrong type to some
 # block drivers
index 861eabf5cc09104873be1a2b5ea92fd601ee7e50..7deb7563c975b04f6c3a316562b03a4c5152f58c 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env bash
 #
 # qemu-img dd test
 #
index 5b46069fded464040590b0f36c79461f452bd155..341064a1c6bddac786488a86f3f96f8711f7a6e6 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test 'offset' and 'size' options of the raw driver. Make sure we can't
 # (or can) read and write outside of the image size.
index 1e60a7e3d68192cefd8c2b921a20e5bff2a4f329..ba7dad905751c2ed057cd6b6e643b0a384dc8655 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test floppy configuration
 #
index 1fe8c5d738164c8d763d9a59ab09a7ebd44e9155..47036a5564f385c2e2809c5f9527fe836695bb9e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test QAPI commands looking up protocol based images with relative
 # filename backing strings
index d8bb05c4e2199fcccaa6b5d4d98e8b7e28372261..0a952a73fd8f7df9a0cf5ad2e553140baba9fbd7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test that qemu-io fail with non-zero exit code
 #
index ebbeb6e74cd8e23eca77339cafcea967a27f3922..d0ffc495c2886c818ec10dc530f33263aa51cc29 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test creating raw image preallocation mode
 #
index 4ecd5894a392fe97ba48007fb7487a7d14ea03b6..50df4c00fa2885762e58a5ca1fc21a66ea439f5d 100755 (executable)
@@ -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.
index f0c1155e8077c156e1c6bee7dee304d7c7cc783a..752d29f8ad50c854a367f95fbc3f158c86b482a4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test corner cases with unusual block geometries
 #
index 927bf06e4dbf264bb11ac2807baf11db842d0bbd..21231cadd34e226b13f4bc8426c71c4236266eee 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # qemu-img measure sub-command tests
 #
index 304063163645adf76741dfe98c43a69224aeeb28..9372dc30ef779c51e7d01a9855f7828f5f12d1d1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for write zeroes with unmap
 #
index 0c44108dac140e5f6ab7871f13cd9ead228b6dea..e317e6342251653e24ff1e771e1ffb11dda84a28 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test postcopy live migration with shared storage
 #
index 9e078c5484d2c88ed6835844c55b3e3875e7ab02..ff3d7e7ec1bc7d967546ed89c15a509cc95da460 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test image locking for POSIX locks
 #
index ebb5e304ac7043ab402940801fd9f8e22a9f2faa..93b7bd798ae2a679441b54f7167572fbd88e561a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test old-style block migration (migrate -b)
 #
index 0af7a73aca13a06d50e927ff81ac081c80058494..cb0c181228b56f0a74b4a0974a620002ac9b892a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test I/O throttle block filter driver interface
 #
index d8f1505cd83b5957657f357e371376e4cf67a829..454ff600cc38857336cd35ecd293ce954a296568 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test exiting qemu while jobs are still running
 #
index c27dc953b6f52a639ecc1704b77ba0fe226c72c4..5dd2177b8938edea1d98ff6a3a8821775338ca68 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test 'info block' with all kinds of configurations
 #
index 1feddca5081315687f0b414f161357c98dd96aa3..a45addde09ada70bd2134daea0061f52dc907740 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test switching between read-only and read-write
 #
index af40e496eedb1d7d1546063658c7424424ff4b7b..be7278aa652dda83eacfbfbc80ef6a4ea2d75222 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test encrypted read/write using plain bdrv_read/bdrv_write
 #
index 222bec133b6e512fe6560e3a7dd01158d44dd91b..c9ce9d3bede3038e367019cea18d73cbf9549c4b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test encrypted read/write using backing files
 #
index 95ba06d8f48a02a6a3d8a9de765cf94814c70958..e1c1d407f083e8c089837bd67aa4bc864031f44d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # qemu-img measure sub-command tests on huge qcow2 files
 #
index 198272ea3b04415e480b01b48b2d9fb3624c8e62..1ea908ce3d6730e94ee6ce677fa031a07feefccb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test commit block job where top has two parents
 #
index 415c706db5482f22baff692fe11d7412bdeb9bac..158086f9d2c39af8d564650bcaa03855f5879550 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test NBD export with -incoming (non-shared storage migration use case from
 # libvirt)
index a977c9798e3a5a222b9247cf3a6d5be1da56f38d..bd1b71ae5ee9af67bf6d3f6379e79e1c1bad0ca4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test change-backing-file command
 #
index 8170f5d4ab1962d4e09d6046f8e8d1bedf309808..2c664793f417ba75f48ac653b01eaccd8fa35c5c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for copy-on-read into qcow2
 #
index 4d961f4f3a538dc4f2cc1ff3f7748028b2cbcdfd..c8f824cfae60cbf1de118e1915edb5c6ebcbe012 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test commit of encrypted qcow2 files
 #
index b9ebd5a8c77d651df3e7b35ae400e24c11702338..12d25f4a1c5b6dc4dd5452a2cf3eba26cd93c251 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Block job co-routine race condition test.
 #
index c1a1e00077f88ff427e6dcfcef2abf6a18835764..7abf740fe41fcc5dba68be0c97346df7581363d9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test savevm and loadvm after live migration with postcopy flag
 #
index 30f0653ce973f2b3eb65b5730d5ed4909de87585..abb73dc381c99ddb5e36192abb608f5644c27ed2 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test corner cases with unusual block geometries
 #
index 7a2d5391bb7f6702b86f0338d705f83ebb74be44..c1a452ff9a1f9b8d06e0c0a9ec6b20091c7d4c40 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test qcow2 image compression
 #
index 230fd2551a5ff0e7891bc827fe01ecd6358d9f58..7b063d7cfa77cc056ae8c85fa6e6e737920fb5c3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for copy-on-read into qcow2, using the COR filter driver
 #
index d3ab5d72be1052dc21e566f099ea510cc7ba10a7..f5482bb66944cd710c93e049b5d2c2a33dea193f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # I/O errors when working with internal qcow2 snapshots, and repairing
 # the result
index 0c5682bda07101a83e8ffd269f4809625bb8612a..2d62c5dcac2a258ed82cd4bca7757ec8b1ec3824 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # max limits on compression in huge qcow2 files
 #
index 06f48f1f23d3680534d1f650623d1b97776e3f2f..808cd9a289c7f9c1927303ea3989e8af5752da3f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test qemu-img vs. unaligned images
 #
index f120a016460160d60a138a7dba366f131ca2927b..98b6cc73afe152d2f03d174008f2a1e745053616 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test reading dirty bitmap over NBD
 #
index e42ee94ff014b9091c1143cd07768a616f8c3311..fbd7404791838ff9377ebdb38473ab7b5f735522 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test vmdk backing file correlation
 #
index aec413b23c494299b8ed2a75d2da5ac05cd21121..c1e1fb2b1cdfef5256edec7a57c01fe6b5d84518 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # This test covers expected filetypes for the file, host_cdrom and
 # host_device drivers.
index be1b636af06612c017237f6bd28e7f1183c0c7f6..10cf144eb050a51c08720429d8a7c4f1a017fa27 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test query-blockstats with different ways to create a BB
 #
index b0d4885fa6e4a4a71c76adb88834aec274e457e4..e18a464fe06fc7b97c103b76555558f4907412f0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test for force canceling a running blockjob that is paused in
 # an error state.
index e9f8aaacd34db6a53829a8402f0180a3aaf724db..5b2cbab9acea3f12ad45bba4b171fb92a1d1d742 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test legacy and modern option parsing for rbd/ceph.  This will not
 # actually connect to a ceph server, but rather looks for the appropriate
index e48bc8f5db2bdfc6fd9847d70735a9d99668007c..71fd48eff05b859e45486529c5a1c25cecbfa8e1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test for auto-read-only
 #
index adb742fafb0369f15673c8bf24162aa7957f9b39..876cd5997b60da8519b1bdd458b6690c310af474 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test NBD TLS certificate / authorization integration
 #
index 101688743841499df81dfbade520ff788357ae6a..f9c24b6753c3c3c3a47c7393962396a8fd088668 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2009 Red Hat, Inc.
 # Copyright (c) 2000-2002,2006 Silicon Graphics, Inc.  All Rights Reserved.
index 9f460f203da87688787356eef54ac06d5b334a78..9bd1a5a6fc8367c336e9f51fe22fbd7348f234fd 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2009 Red Hat, Inc.
 # Copyright (c) 2000-2003,2006 Silicon Graphics, Inc.  All Rights Reserved.
index 1aa7d57140f868107350b53ab5b045669acac526..c282bc24f0999aec0bbad2cefa3b2b204af52f79 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2009 Red Hat, Inc.
 # Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
index 233187a25ccf6e141605b57f3d87e2bfa3bd1212..25fc9ffaa46b3411983a35288c5ffdd75b8a4eae 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # -*- shell-script-mode -*-
 #
 # Helpers for NBD server related config
index b67bb3413607e5315ed3a5f6e5edf1c5f48abd79..25aa0d01c1a5babdd2e9d8cf6d56b374b698c778 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2009 Red Hat, Inc.
 #
index 7c87b897fa3da10ad5136aad76c11fec8d65cbd5..8d2021a7eb0c7085802c6f4c059766444eb977b5 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # This allows for launching of multiple QEMU instances, with independent
 # communication possible to each instance.
index 09a27f02d0e9ef6ff312ae1aeda9379c0dc4c769..f21020eba6cbb17800c1a19244bac8f580c7428e 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2009 Red Hat, Inc.
 # Copyright (c) 2000-2006 Silicon Graphics, Inc.  All Rights Reserved.
index 3caf989d28ce492f8e0966d7380041dbd7e8b841..54c331d7a5ee9dd0c5e67987214dd0ac06f56d1a 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Helpers for TLS related config
 #