xfstests: ignore absolute address in filename in test case 237
Boris Ranto
branto at redhat.com
Thu Dec 9 07:05:44 CST 2010
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 at redhat.com>
More information about the xfs
mailing list