summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2023-04-15 22:19:06 +0100
committerPádraig Brady <P@draigBrady.com>2023-04-16 16:11:20 +0100
commitd81094dc7b239711253f14a18940efaeca2bed1e (patch)
treecf2229d8fc037294ee0e794f54200adf928e3c5a
parentcf91b9d62cc936ae4942c1d5def0db448a2c8b25 (diff)
downloadcoreutils-d81094dc7b239711253f14a18940efaeca2bed1e.tar.gz
tests: avoid allocation checks on ZFS
* tests/du/basic.sh: Allocation of files was seen to change asynchronously on ZFS, so avoid allocation comparisons there.
-rwxr-xr-xtests/du/basic.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/du/basic.sh b/tests/du/basic.sh
index 6d4119b68..28eeb59f6 100755
--- a/tests/du/basic.sh
+++ b/tests/du/basic.sh
@@ -59,7 +59,9 @@ compare exp out || fail=1
# Perform this test only if "." is on a local file system.
# Otherwise, it would fail e.g., on an NFS-mounted Solaris ZFS file system.
-if is_local_dir_ .; then
+# Also skip local ZFS as that was seen to fail intermittently
+# (perhaps due to async compression affecting allocations)
+if is_local_dir_ . && ! df -T -t zfs .; then
rm -f out exp
du --block-size=$B -a d | sort -r -k2,2 > out || fail=1
echo === >> out