* tests/du/long-sloop.sh: Avoid failure due to
intermittent reception of FTS_DNR, seen on BTRFS at least.
---
 tests/du/long-sloop.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/du/long-sloop.sh b/tests/du/long-sloop.sh
index b9acfbf63..e5ca20212 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_
 
-- 
2.48.1


Reply via email to