]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
xfstests: ignore absolute address in filename in test case 237
authorBoris Ranto <branto@redhat.com>
Tue, 14 Dec 2010 19:17:16 +0000 (20:17 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 14 Dec 2010 19:17:16 +0000 (20:17 +0100)
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.

Signed-off-by: Boris Ranto <branto@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
237

diff --git a/237 b/237
index bcec3b1e7ef7852ba2636ce3c59cf6c00afee59f..4d7bb402b095bbaa602364a28e0f2d74eaf3866e 100755 (executable)
--- a/237
+++ b/237
@@ -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