mirror of
https://github.com/coreutils/coreutils.git
synced 2026-10-28 09:44:34 +08:00
tests: prefer require_inotify_supported_ to file system check
* tests/tail/inotify-rotate-resources.sh: Use require_inotify_supported_ instead of require_local_dir_ and the recently added check for overlayfs. Suggested by Pádraig Brady.
This commit is contained in:
1 parent
c2a2508c38
commit
ab6b01f40f
1 file changed
+1
-7
@@ -19,13 +19,7 @@
|
||||
. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
|
||||
print_ver_ tail
|
||||
|
||||
# Inotify not used on remote file systems
|
||||
require_local_dir_
|
||||
|
||||
# We don't use inotify on overlayfs.
|
||||
# See the comments in human_fstype from src/stat.c.
|
||||
test "$(stat -f -c "%T" .)" != overlayfs \
|
||||
|| skip_ 'inotify is not used on overlayfs'
|
||||
require_inotify_supported_
|
||||
|
||||
grep '^#define HAVE_INOTIFY 1' "$CONFIG_HEADER" >/dev/null \
|
||||
|| skip_ 'inotify required'
|
||||
|
||||
Reference in new issue
Block a user