]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid allocation checks on ZFS
authorPádraig Brady <P@draigBrady.com>
Sat, 15 Apr 2023 21:19:06 +0000 (22:19 +0100)
committerPádraig Brady <P@draigBrady.com>
Sun, 16 Apr 2023 15:11:20 +0000 (16:11 +0100)
* tests/du/basic.sh: Allocation of files was seen to change
asynchronously on ZFS, so avoid allocation comparisons there.

tests/du/basic.sh

index 6d4119b68d3a611c4084d1b22c94805c8866a60d..28eeb59f600fc5c83e4cdea0bb30d6154d51f5dc 100755 (executable)
@@ -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