diff --git a/tests/tail/inotify-rotate-resources.sh b/tests/tail/inotify-rotate-resources.sh index 8a3eed3bd..e1aeafbc2 100755 --- a/tests/tail/inotify-rotate-resources.sh +++ b/tests/tail/inotify-rotate-resources.sh @@ -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'