[tor-commits] [tor/master] Clean up after zero length key test
nickm at torproject.org
nickm at torproject.org
Wed Feb 11 21:00:20 UTC 2015
commit f84a54c159e89e90fb4b3ce07a9ddfbd6f1dc8a0
Author: Sebastian Hahn <sebastian at torproject.org>
Date: Fri Feb 6 23:21:20 2015 +0100
Clean up after zero length key test
---
src/test/zero_length_keys.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/test/zero_length_keys.sh b/src/test/zero_length_keys.sh
index 729baeb..7c99564 100755
--- a/src/test/zero_length_keys.sh
+++ b/src/test/zero_length_keys.sh
@@ -26,6 +26,12 @@ if [ $# -lt 1 ]; then
fi
DATA_DIR=`mktemp -d -t tor_zero_length_keys.XXXXXX`
+if [ -z "$DATA_DIR" ]; then
+ echo "Failure: mktemp invocation returned empty string"
+ exit 255
+fi
+trap "rm -rf '$DATA_DIR'" 0
+
# DisableNetwork means that the ORPort won't actually be opened.
# 'ExitRelay 0' suppresses a warning.
TOR="./src/or/tor --hush --DisableNetwork 1 --ShutdownWaitLength 0 --ORPort 12345 --ExitRelay 0"
More information about the tor-commits
mailing list