From 3edbc453a86f10ddcc9fc5d2535aff07b40d2f8e Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 18 Mar 2018 11:31:07 -0400 Subject: tests: Work around broken rm in cleanup BusyBox rm, for example, doesn't handle long paths properly, so give it some help. C.f. http://lists.busybox.net/pipermail/busybox/2018-March/086302.html --- tests.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests.sh b/tests.sh index 31135ab..16750b6 100755 --- a/tests.sh +++ b/tests.sh @@ -33,6 +33,13 @@ function cleanup() { return fi + # Don't force rm to deal with long paths + for dir in "$TMP"/deep/*/*; do + if [ -d "$dir" ]; then + (cd "$dir" && rm -rf *) + fi + done + rm -rf "$TMP" } trap cleanup EXIT -- cgit v1.2.3