]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid a false ERROR when using overlayfs
authorCollin Funk <collin.funk1@gmail.com>
Sun, 26 Jul 2026 02:53:45 +0000 (19:53 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Sun, 26 Jul 2026 03:33:06 +0000 (20:33 -0700)
* tests/tail/inotify-rotate-resources.sh: Also skip the test on
overlayfs.

tests/tail/inotify-rotate-resources.sh

index 066fdea300fa8a0e6f2ed83b8dd0e1c6b2370bc3..8a3eed3bde59ad36484273eb5d5a57079e7867d1 100755 (executable)
@@ -22,6 +22,11 @@ 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'
+
 grep '^#define HAVE_INOTIFY 1' "$CONFIG_HEADER" >/dev/null \
   || skip_ 'inotify required'