Skip to contentSkip to conversation

xfstests 125: don't traverse through fs for su command

PATCH New Eric Sandeen 1 participant 1 message Feb 18, 2010

lore
Share & tools
lore
#0 lore raw

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...

---

125 +1 -1
index e84109a..9a29941 100755
@@ -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