qemu-iotests: explicitly use bash interpreter
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Mon, 26 Apr 2010 09:44:05 +0000 (11:44 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 22 Feb 2012 15:17:03 +0000 (16:17 +0100)
The tests use bash language features like 'let', which aren't supported
by /bin/sh on systems that use a conservative shell like dash.  This
patch changes the interpreter to /bin/bash.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
30 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/006
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/016
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/check
tests/qemu-iotests/common
tests/qemu-iotests/common.config
tests/qemu-iotests/common.filter
tests/qemu-iotests/common.pattern
tests/qemu-iotests/common.rc

index bb96dca8803724017f308c138161b788485a6c26..fe66a8e5d34ace2747a99b85f072d8f64c2c6571 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Test simple read/write using plain bdrv_read/bdrv_write
 #
index a634e1e2902ab8d84b50e6b69784e0c7f9cb2987..57af97416880bd05a6e3ec7b4e67ecb2906e46ba 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Test simple read/write using plain bdrv_pread/bdrv_pwrite
 #
index 23a406e75852192e6668326651c111c8753d5f63..656da99e69450bc2f785a6036290c32b92cce3f1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Test simple read/write using bdrv_aio_readv/bdrv_aio_writev
 #
index 0c45845f3437a6eeab06fbad5b593abc01feef4b..3de7ed859afb25898a155f0ff1338fb27e176839 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Make sure we can't read and write outside of the image size.
 #
index 1debdc4606bb1b76653f5c8730d43cce12c88b38..480276bce54d0d7f16b0222fa54a1099842d2e0d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Make sure qemu-img can create 5TB images
 #
index 58b821359dd642a332ae20d88d833bbc3f6788d0..98ef4ea91d53a18bf65267613c37be9c5744bfd0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Make sure qemu-img rejects > 127GB images for the vpc format as the format
 # doesn't support this.
index b2b6df3f65f3d694b40041cc41eea15bb187218d..2de1aa4977b72eba5937ba7a0e0e97fa85bf8600 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Check for one possible case of qcow2 refcount corruption.
 #
index 26d11021ce2a70192e3c9f84c0cc837caf172a63..b697deb2e37443653c3c0ef7b52f41f24037e09e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Test simple asynchronous read/write operations.
 #
index ebcc8de4b49e14c76ae2a57bdb8450d7c05463f4..1499b77e91e904b3caeea5bdd4e5c0a422064e48 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Nolan I qcow2 corruption - incorrectly reports free clusters
 #
index 2cb5eebd457d4c0c74e56010981c116aa7df63a9..440e9f68fa99354209071e9c770355022e6cb1e1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Nolan II qcow2 corruption - wrong used cluster
 #
index 9106e74cc47a577d078a6fe68c8b691f85b5553a..87b408248142306ed7e0504d3b1411211f991cf0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Test for AIO allocation on the same cluster
 #
index a1b45fc2b95f9acefa54ea624d495c5735e97060..32a264750e48ec597610036925944325b3306db5 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Make sure we can open read-only images
 #
index bd9fdefaf900ced89827f860c550cad58a3a036d..0671bf6ddc1b79cfd627dd51d912567edbb05795 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # qcow2 pattern test, empty and compressed image - 4k cluster patterns
 #
index ee7bf2176a6518c0f6e90dee186c7a5da6892106..f38af439459a92ebbe6742e2305aaa90a77f7160 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # qcow2 pattern test, complex patterns including compression and snapshots
 # Using patterns for 4k cluster size.
index 34b475f44e4bd19a8f4e4e13882df0cb8b885d4e..f3b0acc688ed458745f7502f273d8448cbd429c4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Combined test to grow the refcount table and test snapshots.
 #
index 1dbdcb54bcb6c57d31e15a57a4d1b78533ca587c..e09ab86425ed47c03c2f95b7a707b362d2097d17 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Test I/O after EOF for growable images.
 #
index 1580ef7e3076995f5d5f04ebd89800b358391e0f..d861961db28f516300e1aaa28fa7d7ec182aa954 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Simple backing file reads
 #
index c6233f148dcca829ee112f6b6531a59496517419..0a348feb6127d78cb378918a7fb14a25696aad30 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Merge backing file into test image when converting the image
 #
index 20893c5faeb356c2e9eb7a55809ffffa80aee242..711255eaaee89c4dabb363d62901b8130422e7ae 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/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 4c9778d1bdd77f64395f6bbb8cf86319a2ef7a01..546e074498fac5d4e67bd29d0b31e33a0e928108 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Commit changes to backing file
 #
index c0241aebe14de5964cb46211c8106c4dcbf74886..eb6123094459107a783c0d027833c2f9fef2caaa 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Test handling of invalid patterns arguments to qemu-io
 #
index ccf2319c4ad487fbe679d7d42ef9941cc38a74d4..635ad146a43533e413370a357431a1713d52663e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Test bdrv_load/save_vmstate using the usual patterns
 #
index 883ca47876c8f4ef92093b3c987fb192d4f1aa65..55c5be7693ce76a4dac2ad10e483d69b681718de 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # qcow2 pattern test with various cluster sizes
 #
index 3cad2879c9d67253622a64dc681d57139467dd95..2b2ebf144fc148a5b08025a0497f3d5266e25757 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Rebasing COW images
 #
index 8652e8cbafaadada273e9d7d57cd529116926e7c..e0eaa7a06131ba4261441ec77820e3dffc5144da 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (C) 2009 Red Hat, Inc.
 # Copyright (c) 2000-2002,2006 Silicon Graphics, Inc.  All Rights Reserved.
index c2467664108058da27e2af0f66b741526c673531..988fd5eb37ab1be96de89f74af1da6113a6bf697 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh 
+#!/bin/bash
 #
 # Copyright (C) 2009 Red Hat, Inc.
 # Copyright (c) 2000-2005 Silicon Graphics, Inc.  All Rights Reserved.
index cbbf39d6789e86db12de32fb87e278792a871a3e..bdd053095b9db80fbd4c1b1044bd72985e61f711 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (C) 2009 Red Hat, Inc.
 # Copyright (c) 2000-2003,2006 Silicon Graphics, Inc.  All Rights Reserved.
index ba464a599058ae4f945bbf9d21e73b5bcd800f50..ce81266ef73a6d2963c82657bc5e31fe536c2b00 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (C) 2009 Red Hat, Inc.
 # Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
index a40d0d06d880b2b7ff6cc8dc0e30e77c9e624926..c2b84b8f4854b8dab3b730750155582b7e45583c 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (C) 2009 Red Hat, Inc.
 #
index 0a7ba006e5e9fa0661950e92bd9ca5f51890906e..da58f9256148e9e91da15f24d47d1858f926e15e 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (C) 2009 Red Hat, Inc.
 # Copyright (c) 2000-2006 Silicon Graphics, Inc.  All Rights Reserved.