On 13/04/2023 20:21, Sam James wrote:
I still get this du failure though: tests/du/basic: http://sprunge.us/c5k99m
Is that an intermittent failure? My only guess is that the allocations for the files are changing asynchronously due to background compression or something. This change will avoid that part of the test on ZFS (which was already seen to give issues when used remotely): cheers, Pádraig diff --git a/tests/du/basic.sh b/tests/du/basic.sh index 6d4119b68..476304060 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 alloctions) +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