代码拉取完成,页面将自动刷新
From 8dc094e77603c61a9b86b448c3128cf61ea66d8a Mon Sep 17 00:00:00 2001
From: jiangchuangang <jiangchuangang@huawei.com>
Date: Sat, 25 Nov 2023 09:11:43 +0800
Subject: [PATCH] test: skip overlay filesystem because of no inotify_add_watch
---
tests/tail/inotify-dir-recreate.sh | 5 +++++
tests/tail/inotify-rotate-resources.sh | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/tests/tail/inotify-dir-recreate.sh b/tests/tail/inotify-dir-recreate.sh
index 469876b..2af2aed 100755
--- a/tests/tail/inotify-dir-recreate.sh
+++ b/tests/tail/inotify-dir-recreate.sh
@@ -21,6 +21,11 @@
. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
print_ver_ tail
+filesystem=$(df -T $(pwd) | awk 'NR==2 {print $2}')
+if [ x"$filesystem" == x"overlay" ]; then
+ skip_ 'overlay filesystem skipped, no inotify_add_watch'
+fi
+
grep '^#define HAVE_INOTIFY 1' "$CONFIG_HEADER" >/dev/null && is_local_dir_ . \
|| skip_ 'inotify is not supported'
diff --git a/tests/tail/inotify-rotate-resources.sh b/tests/tail/inotify-rotate-resources.sh
index 6fa65ff..838a9a1 100755
--- a/tests/tail/inotify-rotate-resources.sh
+++ b/tests/tail/inotify-rotate-resources.sh
@@ -22,6 +22,11 @@ print_ver_ tail
# Inotify not used on remote file systems
require_local_dir_
+filesystem=$(df -T $(pwd) | awk 'NR==2 {print $2}')
+if [ x"$filesystem" == x"overlay" ]; then
+ skip_ 'overlay filesystem skipped, no inotify_add_watch'
+fi
+
grep '^#define HAVE_INOTIFY 1' "$CONFIG_HEADER" >/dev/null \
|| skip_ 'inotify required'
--
2.36.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。