Browse Source

qemu-iotests: explicitly use bash interpreter

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>
stable-1.1
Stefan Hajnoczi 16 years ago
committed by Kevin Wolf
parent
commit
908eaf6802
  1. 2
      tests/qemu-iotests/001
  2. 2
      tests/qemu-iotests/002
  3. 2
      tests/qemu-iotests/003
  4. 2
      tests/qemu-iotests/004
  5. 2
      tests/qemu-iotests/005
  6. 2
      tests/qemu-iotests/006
  7. 2
      tests/qemu-iotests/007
  8. 2
      tests/qemu-iotests/008
  9. 2
      tests/qemu-iotests/009
  10. 2
      tests/qemu-iotests/010
  11. 2
      tests/qemu-iotests/011
  12. 2
      tests/qemu-iotests/012
  13. 2
      tests/qemu-iotests/013
  14. 2
      tests/qemu-iotests/014
  15. 2
      tests/qemu-iotests/015
  16. 2
      tests/qemu-iotests/016
  17. 2
      tests/qemu-iotests/017
  18. 2
      tests/qemu-iotests/018
  19. 2
      tests/qemu-iotests/019
  20. 2
      tests/qemu-iotests/020
  21. 2
      tests/qemu-iotests/021
  22. 2
      tests/qemu-iotests/022
  23. 2
      tests/qemu-iotests/023
  24. 2
      tests/qemu-iotests/024
  25. 2
      tests/qemu-iotests/check
  26. 2
      tests/qemu-iotests/common
  27. 2
      tests/qemu-iotests/common.config
  28. 2
      tests/qemu-iotests/common.filter
  29. 2
      tests/qemu-iotests/common.pattern
  30. 2
      tests/qemu-iotests/common.rc

2
tests/qemu-iotests/001

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Test simple read/write using plain bdrv_read/bdrv_write # Test simple read/write using plain bdrv_read/bdrv_write
# #

2
tests/qemu-iotests/002

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Test simple read/write using plain bdrv_pread/bdrv_pwrite # Test simple read/write using plain bdrv_pread/bdrv_pwrite
# #

2
tests/qemu-iotests/003

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Test simple read/write using bdrv_aio_readv/bdrv_aio_writev # Test simple read/write using bdrv_aio_readv/bdrv_aio_writev
# #

2
tests/qemu-iotests/004

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Make sure we can't read and write outside of the image size. # Make sure we can't read and write outside of the image size.
# #

2
tests/qemu-iotests/005

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Make sure qemu-img can create 5TB images # Make sure qemu-img can create 5TB images
# #

2
tests/qemu-iotests/006

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Make sure qemu-img rejects > 127GB images for the vpc format as the format # Make sure qemu-img rejects > 127GB images for the vpc format as the format
# doesn't support this. # doesn't support this.

2
tests/qemu-iotests/007

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Check for one possible case of qcow2 refcount corruption. # Check for one possible case of qcow2 refcount corruption.
# #

2
tests/qemu-iotests/008

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Test simple asynchronous read/write operations. # Test simple asynchronous read/write operations.
# #

2
tests/qemu-iotests/009

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Nolan I qcow2 corruption - incorrectly reports free clusters # Nolan I qcow2 corruption - incorrectly reports free clusters
# #

2
tests/qemu-iotests/010

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Nolan II qcow2 corruption - wrong used cluster # Nolan II qcow2 corruption - wrong used cluster
# #

2
tests/qemu-iotests/011

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Test for AIO allocation on the same cluster # Test for AIO allocation on the same cluster
# #

2
tests/qemu-iotests/012

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Make sure we can open read-only images # Make sure we can open read-only images
# #

2
tests/qemu-iotests/013

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# qcow2 pattern test, empty and compressed image - 4k cluster patterns # qcow2 pattern test, empty and compressed image - 4k cluster patterns
# #

2
tests/qemu-iotests/014

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# qcow2 pattern test, complex patterns including compression and snapshots # qcow2 pattern test, complex patterns including compression and snapshots
# Using patterns for 4k cluster size. # Using patterns for 4k cluster size.

2
tests/qemu-iotests/015

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Combined test to grow the refcount table and test snapshots. # Combined test to grow the refcount table and test snapshots.
# #

2
tests/qemu-iotests/016

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Test I/O after EOF for growable images. # Test I/O after EOF for growable images.
# #

2
tests/qemu-iotests/017

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Simple backing file reads # Simple backing file reads
# #

2
tests/qemu-iotests/018

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Merge backing file into test image when converting the image # Merge backing file into test image when converting the image
# #

2
tests/qemu-iotests/019

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# When using a backing file for the output image in qemu-img convert, # 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 # the backing file clusters must not copied. The data must still be

2
tests/qemu-iotests/020

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Commit changes to backing file # Commit changes to backing file
# #

2
tests/qemu-iotests/021

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Test handling of invalid patterns arguments to qemu-io # Test handling of invalid patterns arguments to qemu-io
# #

2
tests/qemu-iotests/022

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Test bdrv_load/save_vmstate using the usual patterns # Test bdrv_load/save_vmstate using the usual patterns
# #

2
tests/qemu-iotests/023

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# qcow2 pattern test with various cluster sizes # qcow2 pattern test with various cluster sizes
# #

2
tests/qemu-iotests/024

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Rebasing COW images # Rebasing COW images
# #

2
tests/qemu-iotests/check

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Copyright (C) 2009 Red Hat, Inc. # Copyright (C) 2009 Red Hat, Inc.
# Copyright (c) 2000-2002,2006 Silicon Graphics, Inc. All Rights Reserved. # Copyright (c) 2000-2002,2006 Silicon Graphics, Inc. All Rights Reserved.

2
tests/qemu-iotests/common

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Copyright (C) 2009 Red Hat, Inc. # Copyright (C) 2009 Red Hat, Inc.
# Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved. # Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved.

2
tests/qemu-iotests/common.config

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Copyright (C) 2009 Red Hat, Inc. # Copyright (C) 2009 Red Hat, Inc.
# Copyright (c) 2000-2003,2006 Silicon Graphics, Inc. All Rights Reserved. # Copyright (c) 2000-2003,2006 Silicon Graphics, Inc. All Rights Reserved.

2
tests/qemu-iotests/common.filter

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Copyright (C) 2009 Red Hat, Inc. # Copyright (C) 2009 Red Hat, Inc.
# Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved. # Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.

2
tests/qemu-iotests/common.pattern

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Copyright (C) 2009 Red Hat, Inc. # Copyright (C) 2009 Red Hat, Inc.
# #

2
tests/qemu-iotests/common.rc

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# #
# Copyright (C) 2009 Red Hat, Inc. # Copyright (C) 2009 Red Hat, Inc.
# Copyright (c) 2000-2006 Silicon Graphics, Inc. All Rights Reserved. # Copyright (c) 2000-2006 Silicon Graphics, Inc. All Rights Reserved.

Loading…
Cancel
Save