1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 03:12:48 +02:00

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.
This commit is contained in:
Pádraig Brady
2025-02-05 11:18:13 +00:00
parent a7defc41ec
commit 90a2a43935

View File

@@ -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_