summaryrefslogtreecommitdiff
path: root/src/test/test_include.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test_include.sh')
-rwxr-xr-xsrc/test/test_include.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_include.sh b/src/test/test_include.sh
index 6cf695fe44..10d3bc502d 100755
--- a/src/test/test_include.sh
+++ b/src/test/test_include.sh
@@ -48,6 +48,9 @@ if "${TOR_BINARY}" --list-modules | grep -q "relay: no"; then
fi
tmpdir=
+# For some reasons, shellcheck is not seeing that we can call this
+# function from the trap below.
+# shellcheck disable=SC2317
clean () {
if [ -n "$tmpdir" ] && [ -d "$tmpdir" ]; then
rm -rf "$tmpdir"