xfs
[Top] [All Lists]

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

To: xfs-oss <xfs@xxxxxxxxxxx>
Subject: [PATCH] xfstests 125: don't traverse through fs for su command
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Thu, 18 Feb 2010 16:50:18 -0600
User-agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
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@xxxxxxxxxxx>
---

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!

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] xfstests 125: don't traverse through fs for su command, Eric Sandeen <=