diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2015-02-06 23:21:20 +0100 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-02-11 15:59:34 -0500 |
commit | f84a54c159e89e90fb4b3ce07a9ddfbd6f1dc8a0 (patch) | |
tree | 8dd00ee4220ab2f5c9ab7e4a6e651f10fade7f41 /src | |
parent | 136b1d8ed0deefc74fb9ddd668695f940cb1b892 (diff) | |
download | tor-f84a54c159e89e90fb4b3ce07a9ddfbd6f1dc8a0.tar.gz tor-f84a54c159e89e90fb4b3ce07a9ddfbd6f1dc8a0.zip |
Clean up after zero length key test
Diffstat (limited to 'src')
-rwxr-xr-x | src/test/zero_length_keys.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/zero_length_keys.sh b/src/test/zero_length_keys.sh index 729baebfea..7c99564f1a 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" |