From 841d9a7d5dad12c1b97bd26381d2ffe226ea57f9 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 30 Dec 2006 11:49:04 +0100 Subject: * tests/mv/acl (skip): Skip this test also if the destination directory, which is on a different file system, lacks ACL support. --- tests/mv/acl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tests/mv/acl') diff --git a/tests/mv/acl b/tests/mv/acl index df3bb012d..9128686ee 100755 --- a/tests/mv/acl +++ b/tests/mv/acl @@ -54,6 +54,8 @@ mkdir -p $tmp || framework_failure=1 cd $tmp || framework_failure=1 touch file || framework_failure=1 +t1=$other_partition_tmpdir/t1 +touch $t1 || framework_failure=1 if test $framework_failure = 1; then echo 'failure in testing framework' @@ -62,12 +64,14 @@ fi skip=no # Ensure that setfacl and getfacl work on this file system. -setfacl -m user:bin:rw file 2> /dev/null || skip=yes +setfacl -m user:bin:rw file 2> /dev/null || skip=. +# And on the destination file system. +setfacl -m user:bin:rw $t1 || skip=$other_partition_tmpdir acl1=`getfacl file` || skip=yes -test $skip = yes && +test $skip != no && { - echo "$0: '.' is not on a suitable file system for this test" 1>&2 + echo "$0: '$skip' is not on a suitable file system for this test" 1>&2 echo "$0: skipping this test" 1>&2 (exit 77); exit 77 } -- cgit v1.2.3-54-g00ecf