mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
tests: avoid false fails on NFS due to EPERM
* 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.
This commit is contained in:
1 parent
ed77fb40ca
commit
d1a1276979
6 files changed
+8
-4
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
print_ver_ chgrp
|
||||
require_membership_in_two_groups_
|
||||
skip_if_root_
|
||||
require_local_dir_
|
||||
|
||||
set _ $groups; shift
|
||||
g1=$1
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -19,14 +19,14 @@
|
||||
. "${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"
|
||||
|
||||
Reference in new issue
Block a user