]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid false fails on NFS due to EPERM
authorPádraig Brady <P@draigBrady.com>
Mon, 26 Dec 2016 13:06:57 +0000 (13:06 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 28 Dec 2016 16:33:43 +0000 (16:33 +0000)
* tests/chgrp/basic.sh: On some NFS setups a user is
not allowed to set a group on a file even if a member
of that group.  Therefore skip this test on remote file systems.
* tests/chgrp/default-no-deref.sh: Likewise.
* tests/chgrp/no-x.sh: Likewise.
* tests/chgrp/posix-H.sh: Likewise.
* tests/chgrp/recurse.sh: Likewise.
* tests/tail-2/inotify-rotate-resources.sh: Change to skipping
on remote file systems in the standard way.

tests/chgrp/basic.sh
tests/chgrp/default-no-deref.sh
tests/chgrp/no-x.sh
tests/chgrp/posix-H.sh
tests/chgrp/recurse.sh
tests/tail-2/inotify-rotate-resources.sh

index b237b14e1f11fdb6f0b9e9d413c54a9fb87b1995..b07b1ac2a1858e9bda772edd873606ad9df96434 100755 (executable)
@@ -19,7 +19,7 @@
 . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
 print_ver_ chgrp
 require_membership_in_two_groups_
-
+require_local_dir_
 
 set _ $groups; shift
 g1=$1
index eac07803fccdc28a6fb21222f6f86a52e92e327b..9f5af6c1c360ae4477a9b65b5d1b19960a9ad343 100755 (executable)
@@ -19,6 +19,7 @@
 . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
 print_ver_ chgrp
 require_membership_in_two_groups_
+require_local_dir_
 
 set _ $groups; shift
 g2=$2
index c42a146cc5f067065d44b99a2c76acd89cfb9438..6fc7803a854e37599f2f0ccc0a2136948dc532a4 100755 (executable)
@@ -21,6 +21,7 @@
 print_ver_ chgrp
 require_membership_in_two_groups_
 skip_if_root_
+require_local_dir_
 
 set _ $groups; shift
 g1=$1
index 832be9abf03d8de5131150ea36baaee461469099..0cac42b6cc567b739e39cf3686d863eb713fbc26 100755 (executable)
@@ -19,6 +19,7 @@
 . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
 print_ver_ chgrp
 require_membership_in_two_groups_
+require_local_dir_
 
 set _ $groups; shift
 g1=$1
index 3285e1f35095a2925bdcc3cfd6b1e14a3f1bd11b..90ea67dbcf7170f7e1882729fcbccf904032efd0 100755 (executable)
@@ -19,6 +19,7 @@
 . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
 print_ver_ chgrp
 require_membership_in_two_groups_
+require_local_dir_
 
 set _ $groups; shift
 g1=$1
index 5b882023b2c55ed5d1fc504f2ec5879bd2456615..a8fef44032c9d23e8cb9eb3735bd6c4b5ca31a02 100755 (executable)
 . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
 print_ver_ tail
 
+# Inotify not used on remote file systems
+require_local_dir_
+
 grep '^#define HAVE_INOTIFY 1' "$CONFIG_HEADER" >/dev/null \
   || skip_ 'inotify required'
 
 require_strace_ 'inotify_add_watch,inotify_rm_watch'
 
-# Quickly skip on remote file systems
-is_local_dir_ . || skip_ 'inotify not used on remote file system'
-
 check_tail_output()
 {
   local delay="$1"