xfstests 125: don't traverse through fs for su command
PATCH 1/1 xfstests 125: don't traverse through fs for su command
I often have xfstests in /root, and 125 fails for me like this:
125.out.bad renamed from 125.out +2 -0
@@ -1,4 +1,6 @@ QA output created by 125 +bash: /root/git/xfstests-dev/src/ftrunc: Permission denied +src/ftrunc returned non 0 status! direct write of 1's into file buffered write of 2's into file truncate file
I think this is becuase $here/src ... means going through /root/git/xfstests-dev/src/ ... and the qa user can't do that.
The below fixes it for me...
Signed-off-by Eric Sandeen <[email protected]>
---
125 +1 -1
@@ -61,7 +61,7 @@ touch $TESTFILE chmod a+rw $TESTDIR chmod a+rw $TESTFILE -su $qa_user -c "$here/src/ftrunc -f $TESTFILE" +su $qa_user -c "./src/ftrunc -f $TESTFILE" if [ "$?" != "0" ]; then echo src/ftrunc returned non 0 status!
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs