]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
CI: Diagnostic for failure in test_rebind cleanup
authorMicah Elizabeth Scott <beth@torproject.org>
Mon, 14 Aug 2023 21:53:52 +0000 (14:53 -0700)
committerMicah Elizabeth Scott <beth@torproject.org>
Tue, 15 Aug 2023 16:52:30 +0000 (09:52 -0700)
I saw this test fail intermittently due to what seemed like a filesystem
race in docker? The cleanup task was failing with a 'directory not
empty' error, despite trying to do a recursive 'rm'. This patch adds an
'ls' to the same directory, hoping the output might be useful to
diagnose future intermittent failures.

src/test/test_rebind.sh

index aae2a9a6a0cb3db1d793ce71c46c25975e963edd..d87e008f9a381a012314a0ee57ca3b28741826b6 100755 (executable)
@@ -51,6 +51,7 @@ tmpdir=
 # shellcheck disable=SC2317
 clean () {
   if [ -n "$tmpdir" ] && [ -d "$tmpdir" ]; then
+    ls -l "$tmpdir"
     rm -rf "$tmpdir"
   fi
 }