[PATCH] tests: avoid false failure with many mountpoints
From:
Pádraig Brady
Subject:
[PATCH] tests: avoid false failure with many mountpoints
Date:
Wed, 15 Jan 2025 16:31:16 +0000
* tests/ls/readdir-mountpoint-inode.sh: Only take the first 64.
---
tests/ls/readdir-mountpoint-inode.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/ls/readdir-mountpoint-inode.sh
b/tests/ls/readdir-mountpoint-inode.sh
index a147b148f..d6e967a15 100755
--- a/tests/ls/readdir-mountpoint-inode.sh
+++ b/tests/ls/readdir-mountpoint-inode.sh
@@ -21,7 +21,7 @@ print_ver_ ls
# We use --local here so as to not activate
# potentially very many remote mounts.
-df --local --out=target | sed -n '/^\/./p' > mount_points
+df --local --out=target | sed -n '/^\/./p' | head -n 64 > mount_points
test -s mount_points ||
skip_ "this test requires a non-root mount point"
--
2.47.1
[Prev in Thread]
Current Thread
[Next in Thread]
[PATCH] tests: avoid false failure with many mountpoints,
Pádraig Brady<=