xfstests: ignore absolute address in filename in test case 237

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Test case 237 checks for setfacl output. The setfacl can use both
relative address or absolute address for filename.

Following patch ignores the unnecessary part of absolute address and
therefore the test case can pass on systems that output absolute
address:

diff -urpN a/xfstests/237 b/xfstests/237
--- a/xfstests/237      2010-12-09 11:24:48.587432718 +0100
+++ b/xfstests/237      2010-12-09 13:46:29.008245581 +0100
@@ -72,7 +72,7 @@ touch file1
 chown $acl1.$acl1 file1

 echo "Expect to FAIL"
-$runas -u $acl2 -g $acl2 -- `which setfacl` -m u::rwx file1 2>&1
+$runas -u $acl2 -g $acl2 -- `which setfacl` -m u::rwx file1 2>&1 | sed 's/^setfacl: \/.*file1: Operation not permitted$/setfacl: file1: Operation not permitted/'

 echo "Test over."
 # success, all done

Signed-off-by: Boris Ranto <branto@xxxxxxxxxx>

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs


[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux