aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2025-01-15 11:52:23 +0000
committerPádraig Brady <P@draigBrady.com>2025-01-15 17:07:19 +0000
commit4bb1fc24454e9c31c32f7be7b9970e97de38d4a5 (patch)
tree581dbbe8d4e68ed1994e36011887c3e65aeb7730
parenttests: printf: avoid false failure (diff)
downloadcoreutils-4bb1fc24454e9c31c32f7be7b9970e97de38d4a5.tar.gz
coreutils-4bb1fc24454e9c31c32f7be7b9970e97de38d4a5.zip
tests: avoid false failure with many mountpoints
* tests/ls/readdir-mountpoint-inode.sh: Only take the first 64.
-rwxr-xr-xtests/ls/readdir-mountpoint-inode.sh2
1 files changed, 1 insertions, 1 deletions
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"