xfsqa: more sh to bash conversions
authorDave Chinner <dchinner@redhat.com>
Wed, 28 Apr 2010 23:59:24 +0000 (09:59 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 28 Apr 2010 23:59:24 +0000 (09:59 +1000)
A new test is using /bin/sh and failing on debian. Clean it up and all the
remaining uses of /bin/sh.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
26 files changed:
225
226
Makepkgs
common.repair
install-sh
make_irix
new
remake
run.bonnie_io
run.bonnie_ops
run.dbench
run.dbench10
run.dbench100
run.dbench2
run.dbench20
run.dbench50
run.dbenchmulti
run.io
run.metaperf_10i_1000n
run.metaperf_10i_1n
run.metaperf_1i_1n
run.pio
run.rtio
run.tar
setup
soak

diff --git a/225 b/225
index ab688cd9ee597edeb468056b74158e5d424688c4..b5f53a70c09b2d5b54ddbbf88372cfe119fa7d05 100644 (file)
--- a/225
+++ b/225
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 # FS QA Test No. 225
 #
 # Run the fiemap (file extent mapping) tester
diff --git a/226 b/226
index 205343ea38a008477c8ae8c34ca4071e39e15ac8..e0c663071d06917696d9fe38e17d485484589f04 100755 (executable)
--- a/226
+++ b/226
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 # FS QA Test No. 226
 #
 # Test for prealloc space leaks by rewriting the same file in a loop
index d5583b44a87891e5acf15f43fdd209c03f1679f0..04e029a74fe6fa5fe0070ce688488c0810f2803c 100755 (executable)
--- a/Makepkgs
+++ b/Makepkgs
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 #
 #      Make whichever packages have been requested.
 #      Defaults to RPMs.
index c59878277cfce7645016370b10364174396fc959..ba42b8ff92d8f140699de5f0ec77f61f8d4052af 100644 (file)
@@ -90,7 +90,7 @@ _check_repair()
        #ensure the filesystem has been dirtied since last repair
        _scratch_mount
        POSIXLY_CORRECT=yes \
-       dd if=/bin/sh of=$SCRATCH_MNT/sh 2>&1 |_filter_dd
+       dd if=/bin/bash of=$SCRATCH_MNT/sh 2>&1 |_filter_dd
        sync
        rm -f $SCRATCH_MNT/sh
        umount $SCRATCH_MNT
@@ -102,7 +102,7 @@ _check_repair()
        _check_scratch_fs
        _scratch_mount                                      #mount
        POSIXLY_CORRECT=yes \
-       dd if=/bin/sh of=$SCRATCH_MNT/sh 2>&1 |_filter_dd   #open,write
+       dd if=/bin/bash of=$SCRATCH_MNT/sh 2>&1 |_filter_dd   #open,write
        POSIXLY_CORRECT=yes \
        dd if=$SCRATCH_MNT/sh of=/dev/null 2>&1 |_filter_dd #read
        rm -f $SCRATCH_MNT/sh                               #unlink
index 4bbc0d3d1915c0cb6aca3a8ab58951904c1f85f0..9002eb1f9c1ac7a02efe09b43cee389b7084128c 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 #
 # Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
 #
index fc4871c0430113362146f550d797f2dd1fe7c73f..d1782785c7ada05e9f3dbba7321d00ca36376248 100755 (executable)
--- a/make_irix
+++ b/make_irix
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2004 Silicon Graphics, Inc.  All Rights Reserved.
 #
diff --git a/new b/new
index 08fc401e4dc58bc6e1916b7114999daeb05093fc..eb5e0cbb0dd1a1cb3d32fa6abca3ab722dcd7bf3 100755 (executable)
--- a/new
+++ b/new
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 #
 #-----------------------------------------------------------------------
 #  Copyright (c) 2000-2005 Silicon Graphics, Inc.  All Rights Reserved.
@@ -93,7 +93,7 @@ echo -n "Creating skeletal script for you to edit ..."
 year=`date +%Y`
 
 cat <<End-of-File >$id
-#! /bin/sh
+#! /bin/bash
 # FS QA Test No. $id
 #
 # what am I here for?
diff --git a/remake b/remake
index 4fd3747b9641ae63071ce0e233647eac50539a08..a95aae79cd66bc47b4c4a8e4e26124987d087a83 100755 (executable)
--- a/remake
+++ b/remake
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 #
 # Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
 #
index 0d409bb4b83c4fcea38ac93ffb0ae8561cea5509..e1086506b589378c2934c8bf4f78e196a60e4def 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2002-2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
index 94c5c54d02d990d61b46c6af8724dda2435833bd..609b93ca2d22c6805609f1fb9de9a784db6ab341 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2002-2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
index 4cd0222082317c9eebd25516d8fc3624f2b276dc..8e868071f8956197e68684e89fc6ed9686c322ca 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2002-2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
index 6561354b7c44851890da584bebcc9f00b681837c..e3a08c47d4879a964491b508686d644aeb5cec45 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2002-2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
index 6e6c4b782470c1719df1d4225aefa76633e2e2f7..51708d1cc38051ee44e4acd43d6e291bf5a83c31 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2002-2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
index 9d6035f2d5be0987730b949daa260376eba8612f..c56c208bbea8b2a407c7c155b29f588fa0f13f8b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2002-2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
index aa50bc9e0e2841b1560fa7e88ab4736163cdf095..81f713c08bd3e4251651e7ee6295e37b7c10d91c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
index 3ae6f4bef18d3f3f9b792c6bbc7f1f870d1dbc12..4c54e0b8654ed86649fef6c51b1bc80ac6039bcb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2002-2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
index a50f5fd9573d91d4c5d94b7d6843d8cb150965ca..317a100460930b9e32bee4a4d463d45e4260bac7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
diff --git a/run.io b/run.io
index c5ed6668ed63da807af135f6f06cb8b150d123e6..91e3b937e1b51399f0be6b08a6f87ed3f4b800c2 100755 (executable)
--- a/run.io
+++ b/run.io
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2005 Silicon Graphics, Inc.  All Rights Reserved.
 #
index aca004cfcdc45a795983ab630e7a803791d72802..a4206963ba02c2a7b2ee9eabb7855c8ca88fa751 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
index 4149fd6b38c76df72da55cd377333b89465f5183..296fd58547a806a119d2681a659213ba2033739b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
index e714e16bc70cf9d3381c36babedc05bf4f72c2f1..ef02852334cb0a71302f7b4505f9f4a564f38a19 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
diff --git a/run.pio b/run.pio
index 28900c63f78a902a4c0e7a398927418708fbd853..1b67fbf10a71347e589425d29a0cf56a7c7ef1ee 100755 (executable)
--- a/run.pio
+++ b/run.pio
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2005 Silicon Graphics, Inc.  All Rights Reserved.
 #
index ed2d74a6c2864877cae100a49bf5cb68626f6361..14aded6b181a1ad799543044021a3cda627149e0 100755 (executable)
--- a/run.rtio
+++ b/run.rtio
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2005 Silicon Graphics, Inc.  All Rights Reserved.
 #
diff --git a/run.tar b/run.tar
index 74c65406ddda77a25fe7c6acef2b6a24167cc7f5..6e8afd3381a33f812e10b73ef0a3ecb2fe011616 100755 (executable)
--- a/run.tar
+++ b/run.tar
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 # 
 # Produces a .tar file (if one doesn't exist as $TARFILE), then
 # times how long it takes to untar it onto the current directory.
diff --git a/setup b/setup
index 0621f5a1354bace9b665331147de9934a5af9b88..62798cc638559a3db38f41d35ffc6f9703a17e01 100755 (executable)
--- a/setup
+++ b/setup
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2003-2004 Silicon Graphics, Inc.  All Rights Reserved.
 #
diff --git a/soak b/soak
index 5e0d9647f8f2b112543cb184db76b66d8aa8afb0..28a2e2e94dbec478d24a0a1e691736ded8ae934f 100755 (executable)
--- a/soak
+++ b/soak
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #-----------------------------------------------------------------------
 # Copyright (c) 2000-2002 Silicon Graphics, Inc.  All Rights Reserved.
 #