Skip to contentSkip to conversation

explicitly use bash interpreter

PATCH In review Stefan Hajnoczi 2 participants 2 messages Apr 19, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 explicitly use bash interpreter

From: Stefan Hajnoczi <[email protected]>

The tests use bash language features including 'local' and '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.

---
 001            |    2 +-
 002            |    2 +-
 003            |    2 +-
 004            |    2 +-
 005            |    2 +-
 006            |    2 +-
 007            |    2 +-
 008            |    2 +-
 009            |    2 +-
 010            |    2 +-
 011            |    2 +-
 012            |    2 +-
 013            |    2 +-
 014            |    2 +-
 015            |    2 +-
 016            |    2 +-
 017            |    2 +-
 018            |    2 +-
 019            |    2 +-
 020            |    2 +-
 021            |    2 +-
 022            |    2 +-
 023            |    2 +-
 024            |    2 +-
 check          |    2 +-
 common         |    2 +-
 common.config  |    2 +-
 common.filter  |    2 +-
 common.pattern |    2 +-
 common.rc      |    2 +-
 30 files changed, 30 insertions(+), 30 deletions(-)
001 +1 -1
index bb96dca..fe66a8e 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Test simple read/write using plain bdrv_read/bdrv_write
 #
002 +1 -1
index a634e1e..57af974 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Test simple read/write using plain bdrv_pread/bdrv_pwrite
 #
003 +1 -1
index 23a406e..656da99 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Test simple read/write using bdrv_aio_readv/bdrv_aio_writev
 #
004 +1 -1
index 0c45845..3de7ed8 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Make sure we can't read and write outside of the image size.
 #
005 +1 -1
index 1debdc4..480276b 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Make sure qemu-img can create 5TB images
 #
006 +1 -1
index 58b8213..98ef4ea 100755
@@ -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.
007 +1 -1
index b2b6df3..2de1aa4 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Check for one possible case of qcow2 refcount corruption.
 #
008 +1 -1
index 26d1102..b697deb 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Test simple asynchronous read/write operations.
 #
009 +1 -1
index ebcc8de..1499b77 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Nolan I qcow2 corruption - incorrectly reports free clusters
 #
010 +1 -1
index 2cb5eeb..440e9f6 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Nolan II qcow2 corruption - wrong used cluster
 #
011 +1 -1
index 9106e74..87b4082 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Test for AIO allocation on the same cluster
 #
012 +1 -1
index a1b45fc..32a2647 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Make sure we can open read-only images
 #
013 +1 -1
index bd9fdef..0671bf6 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # qcow2 pattern test, empty and compressed image - 4k cluster patterns
 #
014 +1 -1
index ee7bf21..f38af43 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # qcow2 pattern test, complex patterns including compression and snapshots
 # Using patterns for 4k cluster size.
015 +1 -1
index 34b475f..f3b0acc 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Combined test to grow the refcount table and test snapshots.
 #
016 +1 -1
index 1dbdcb5..e09ab86 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Test I/O after EOF for growable images.
 #
017 +1 -1
index 1580ef7..d861961 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Simple backing file reads
 #
018 +1 -1
index c6233f1..0a348fe 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Merge backing file into test image when converting the image
 #
019 +1 -1
index 20893c5..711255e 100755
@@ -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
020 +1 -1
index 4c9778d..546e074 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Commit changes to backing file
 #
021 +1 -1
index c0241ae..eb61230 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Test handling of invalid patterns arguments to qemu-io
 #
022 +1 -1
index ccf2319..635ad14 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Test bdrv_load/save_vmstate using the usual patterns
 #
023 +1 -1
index 883ca47..55c5be7 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # qcow2 pattern test with various cluster sizes
 #
024 +1 -1
index 3cad287..2b2ebf1 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Rebasing COW images
 #
check +1 -1
index 8652e8c..e0eaa7a 100755
@@ -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.
common +1 -1
index c246766..988fd5e 100644
@@ -1,4 +1,4 @@
-#!/bin/sh 
+#!/bin/bash
 #
 # Copyright (C) 2009 Red Hat, Inc.
 # Copyright (c) 2000-2005 Silicon Graphics, Inc.  All Rights Reserved.
common.config +1 -1
index cbbf39d..bdd0530 100644
@@ -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.
common.filter +1 -1
index ba464a5..ce81266 100644
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (C) 2009 Red Hat, Inc.
 # Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
common.pattern +1 -1
index a40d0d0..c2b84b8 100644
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (C) 2009 Red Hat, Inc.
 #
common.rc +1 -1
index 0a7ba00..da58f92 100644
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (C) 2009 Red Hat, Inc.
 # Copyright (c) 2000-2006 Silicon Graphics, Inc.  All Rights Reserved.
Signature · 1 line
1.7.0
#1 lore raw
Quoted 5 lines · Stefan Hajnoczi

From: Stefan Hajnoczi <[email protected]>

The tests use bash language features including 'local' and '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.

Minor nit: Dash does support 'local'.

-- Jamie