mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
* tests/mv/acl (skip): Skip this test also if the destination
directory, which is on a different file system, lacks ACL support.
This commit is contained in:
1 parent
67b9752cd1
commit
841d9a7d5d
2 files changed
+10
-3
No files matched your search
@@ -1,5 +1,8 @@
|
||||
2006-12-30 Jim Meyering <jim@meyering.net>
|
||||
|
||||
* tests/mv/acl (skip): Skip this test also if the destination
|
||||
directory, which is on a different file system, lacks ACL support.
|
||||
|
||||
* src/copy.c (copy_reg): Rewrite a comment that was rendered
|
||||
inaccurate by the 2006-10-18 change.
|
||||
|
||||
|
||||
+7
-3
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user