]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: du: avoid intermittent false failure
authorPádraig Brady <P@draigBrady.com>
Wed, 5 Feb 2025 11:18:13 +0000 (11:18 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 5 Feb 2025 11:21:49 +0000 (11:21 +0000)
* tests/du/long-sloop.sh: Avoid failure due to
intermittent reception of FTS_DNR, seen on BTRFS at least.

tests/du/long-sloop.sh

index b9acfbf63af25e615b1594c5afc57148c69be28c..e5ca2021273d8a0a626d3bb24f80bddba039a639 100755 (executable)
@@ -63,7 +63,8 @@ too_many=$(sed 's/.*: //' err)
 # With coreutils-5.94 we get the desired diagnostic:
 # du: cannot access '1/s/s/s/.../s': Too many levels of symbolic links
 du -L 1 > /dev/null 2> out1 && fail=1
-sed "s, .1/s/s/s/[/s]*',," out1 > out || framework_failure_
+sed "s, .1/s/s/s/[/s]*',," out1 > out2 || framework_failure_
+sed "s/cannot read directory/cannot access/" out2 > out || framework_failure_
 
 echo "du: cannot access: $too_many" > exp || framework_failure_