]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid false failure with many mountpoints
authorPádraig Brady <P@draigBrady.com>
Wed, 15 Jan 2025 11:52:23 +0000 (11:52 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 15 Jan 2025 17:07:19 +0000 (17:07 +0000)
* tests/ls/readdir-mountpoint-inode.sh: Only take the first 64.

tests/ls/readdir-mountpoint-inode.sh

index a147b148f0dfba65e6eef5482c3b3821b215ec91..d6e967a153b7e00d68ae9a8b7abe35adff5d4ebd 100755 (executable)
@@ -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"