From: David Disseldorp Date: Fri, 13 Oct 2006 03:54:14 +0000 (+0000) Subject: dont specify shell for su, irix doesnt like it X-Git-Tag: v1.1.0~570 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c344f74b8af9111fdce7c3ac4f766b9bbd79e1f4;p=xfstests-dev.git dont specify shell for su, irix doesnt like it make filter irix friendly Merge of master-melb:xfs-cmds:27181a by kenmcd. --- diff --git a/123 b/123 index 46b5a2df..39d32e87 100755 --- a/123 +++ b/123 @@ -27,9 +27,23 @@ _cleanup() _cleanup_testdir } + +_filter_user_do() +{ + perl -ne " +s,.*Permission\sdenied.*,Permission denied,; +s,.*no\saccess\sto\stty.*,,; +s,.*no\sjob\scontrol\sin\sthis\sshell.*,,; +s,^\s*$,,; + print;" +} + + + + _user_do() { - echo $1 | su -s /bin/sh - $qa_user | sed -e "s#.*Permission denied.*#Permission denied#g" + echo "/bin/sh '$1'" | su - $qa_user | _filter_user_do } # get standard environment, filters and checks @@ -48,7 +62,6 @@ echo foo > $testdir/data_coherency.txt # check basic appending to a file echo bar >> $testdir/data_coherency.txt - # try append _user_do "echo goo 2>&1 >> $testdir/data_coherency.txt"