From: Pádraig Brady
Date: Wed, 5 Feb 2025 11:18:13 +0000 (+0000) Subject: tests: du: avoid intermittent false failure X-Git-Tag: v9.7~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=90a2a439353275129788b23657f3ad379e4c9a86;p=thirdparty%2Fcoreutils.git tests: du: avoid intermittent false failure * tests/du/long-sloop.sh: Avoid failure due to intermittent reception of FTS_DNR, seen on BTRFS at least. --- diff --git a/tests/du/long-sloop.sh b/tests/du/long-sloop.sh index b9acfbf63a..e5ca202127 100755 --- a/tests/du/long-sloop.sh +++ b/tests/du/long-sloop.sh @@ -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_