[PATCH] xfstests 125: don't traverse through fs for su command
Eric Sandeen
sandeen at sandeen.net
Thu Feb 18 16:50:18 CST 2010
I often have xfstests in /root, and 125 fails for me like this:
--- 125.out 2009-08-05 20:19:40.380978986 -0500
+++ 125.out.bad 2010-02-18 16:48:57.507473627 -0600
@@ -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 <sandeen at sandeen.net>
---
diff --git a/125 b/125
index e84109a..9a29941 100755
--- a/125
+++ b/125
@@ -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!
More information about the xfs
mailing list