]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
su changes (again)
authorDavid Disseldorp <ddiss@sgi.com>
Tue, 17 Oct 2006 04:02:39 +0000 (04:02 +0000)
committerDavid Disseldorp <ddiss@sgi.com>
Tue, 17 Oct 2006 04:02:39 +0000 (04:02 +0000)
Merge of master-melb:xfs-cmds:27205a by kenmcd.

123

diff --git a/123 b/123
index 8644067e0b68368be045702bf2c26f163df2ad41..63cd48f3a5fb5289846111115cf6b6736a06952e 100755 (executable)
--- a/123
+++ b/123
@@ -17,7 +17,7 @@ echo "QA output created by $seq"
 here=`pwd`
 tmp=/tmp/$$
 status=0       # success is the default!
-my_test_subdir=$testdir/123subdir
+
 trap "_cleanup; exit \$status" 0 1 2 3 15
 
 _cleanup()
@@ -44,7 +44,12 @@ s,^\s*$,,;
 
 _user_do()
 {
-    echo $1 | /bin/sh "su $qa_user 2>&1" | _filter_user_do
+    if [ "$HOSTOS" == "IRIX" ]
+       then
+       echo $1 | /bin/sh "su $qa_user 2>&1" | _filter_user_do
+    else
+       echo $1 | su $qa_user 2>&1 | _filter_user_do
+    fi
 }
 
 # get standard environment, filters and checks
@@ -58,6 +63,7 @@ _supported_os Linux IRIX
 _require_user
 
 _setup_testdir
+my_test_subdir=$testdir/123subdir
 
 # create subdir with required permissions
 mkdir -m 755 $my_test_subdir