xfs
[Top] [All Lists]

[PATCH] xfsqa: more sh to bash conversions

To: xfs@xxxxxxxxxxx
Subject: [PATCH] xfsqa: more sh to bash conversions
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Wed, 28 Apr 2010 15:30:08 +1000
From: Dave Chinner <dchinner@xxxxxxxxxx>

A new test is using /bin/sh and failing on debiaṅ. Clean it up and all the
remaining uses of /bin/sh.

Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx>
---
 225                    |    2 +-
 226                    |    2 +-
 Makepkgs               |    2 +-
 common.repair          |    4 ++--
 install-sh             |    2 +-
 make_irix              |    2 +-
 new                    |    4 ++--
 remake                 |    2 +-
 run.bonnie_io          |    2 +-
 run.bonnie_ops         |    2 +-
 run.dbench             |    2 +-
 run.dbench10           |    2 +-
 run.dbench100          |    2 +-
 run.dbench2            |    2 +-
 run.dbench20           |    2 +-
 run.dbench50           |    2 +-
 run.dbenchmulti        |    2 +-
 run.io                 |    2 +-
 run.metaperf_10i_1000n |    2 +-
 run.metaperf_10i_1n    |    2 +-
 run.metaperf_1i_1n     |    2 +-
 run.pio                |    2 +-
 run.rtio               |    2 +-
 run.tar                |    2 +-
 setup                  |    2 +-
 soak                   |    2 +-
 26 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/225 b/225
index ab688cd..b5f53a7 100644
--- 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 205343e..e0c6630 100755
--- 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
diff --git a/Makepkgs b/Makepkgs
index d5583b4..04e029a 100755
--- a/Makepkgs
+++ b/Makepkgs
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 #
 #      Make whichever packages have been requested.
 #      Defaults to RPMs.
diff --git a/common.repair b/common.repair
index c598782..ba42b8f 100644
--- a/common.repair
+++ b/common.repair
@@ -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
diff --git a/install-sh b/install-sh
index 4bbc0d3..9002eb1 100755
--- a/install-sh
+++ b/install-sh
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 #
 # Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
 #
diff --git a/make_irix b/make_irix
index fc4871c..d178278 100755
--- 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 08fc401..eb5e0cb 100755
--- 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 4fd3747..a95aae7 100755
--- a/remake
+++ b/remake
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 #
 # Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
 #
diff --git a/run.bonnie_io b/run.bonnie_io
index 0d409bb..e108650 100755
--- a/run.bonnie_io
+++ b/run.bonnie_io
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2002-2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
diff --git a/run.bonnie_ops b/run.bonnie_ops
index 94c5c54..609b93c 100755
--- a/run.bonnie_ops
+++ b/run.bonnie_ops
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2002-2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
diff --git a/run.dbench b/run.dbench
index 4cd0222..8e86807 100755
--- a/run.dbench
+++ b/run.dbench
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2002-2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
diff --git a/run.dbench10 b/run.dbench10
index 6561354..e3a08c4 100755
--- a/run.dbench10
+++ b/run.dbench10
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2002-2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
diff --git a/run.dbench100 b/run.dbench100
index 6e6c4b7..51708d1 100755
--- a/run.dbench100
+++ b/run.dbench100
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2002-2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
diff --git a/run.dbench2 b/run.dbench2
index 9d6035f..c56c208 100755
--- a/run.dbench2
+++ b/run.dbench2
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2002-2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
diff --git a/run.dbench20 b/run.dbench20
index aa50bc9..81f713c 100755
--- a/run.dbench20
+++ b/run.dbench20
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
diff --git a/run.dbench50 b/run.dbench50
index 3ae6f4b..4c54e0b 100755
--- a/run.dbench50
+++ b/run.dbench50
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2002-2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
diff --git a/run.dbenchmulti b/run.dbenchmulti
index a50f5fd..317a100 100755
--- a/run.dbenchmulti
+++ b/run.dbenchmulti
@@ -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 c5ed666..91e3b93 100755
--- a/run.io
+++ b/run.io
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2005 Silicon Graphics, Inc.  All Rights Reserved.
 #
diff --git a/run.metaperf_10i_1000n b/run.metaperf_10i_1000n
index aca004c..a420696 100755
--- a/run.metaperf_10i_1000n
+++ b/run.metaperf_10i_1000n
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
diff --git a/run.metaperf_10i_1n b/run.metaperf_10i_1n
index 4149fd6..296fd58 100755
--- a/run.metaperf_10i_1n
+++ b/run.metaperf_10i_1n
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
diff --git a/run.metaperf_1i_1n b/run.metaperf_1i_1n
index e714e16..ef02852 100755
--- a/run.metaperf_1i_1n
+++ b/run.metaperf_1i_1n
@@ -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 28900c6..1b67fbf 100755
--- a/run.pio
+++ b/run.pio
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2005 Silicon Graphics, Inc.  All Rights Reserved.
 #
diff --git a/run.rtio b/run.rtio
index ed2d74a..14aded6 100755
--- 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 74c6540..6e8afd3 100755
--- 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 0621f5a..62798cc 100755
--- 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 5e0d964..28a2e2e 100755
--- a/soak
+++ b/soak
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #-----------------------------------------------------------------------
 # Copyright (c) 2000-2002 Silicon Graphics, Inc.  All Rights Reserved.
 #
-- 
1.5.6.5

<Prev in Thread] Current Thread [Next in Thread>