aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-02-26 15:21:31 -0500
committerNick Mathewson <nickm@torproject.org>2015-02-26 15:21:31 -0500
commit3e30d4df7fda6ac09477ccc51ae395e1e4b50339 (patch)
tree6801300d063053f5d375b869293f79d446523269
parent1b913777c78e61897e530a91f5c60c8a94a2c1c7 (diff)
downloadtor-3e30d4df7fda6ac09477ccc51ae395e1e4b50339.tar.gz
tor-3e30d4df7fda6ac09477ccc51ae395e1e4b50339.zip
Have zero_length_keys.sh use an empty torrc file.
Fixes 15033; bugfix on 0.2.6.3-alpha.
-rw-r--r--changes/bug150334
-rwxr-xr-xsrc/test/zero_length_keys.sh4
2 files changed, 7 insertions, 1 deletions
diff --git a/changes/bug15033 b/changes/bug15033
new file mode 100644
index 0000000000..953e6c3d59
--- /dev/null
+++ b/changes/bug15033
@@ -0,0 +1,4 @@
+ o Minor bugfixes (tests):
+ - When running the zero-length-keys check, do not use the default
+ torrc file. Fixes bug 15033; bugfix on 0.2.6.3-alpha. Reported
+ by "reezer".
diff --git a/src/test/zero_length_keys.sh b/src/test/zero_length_keys.sh
index 4dea283fdb..2fd11d38bd 100755
--- a/src/test/zero_length_keys.sh
+++ b/src/test/zero_length_keys.sh
@@ -36,9 +36,11 @@ if [ ! -d "$DATA_DIR" ]; then
fi
trap "rm -rf '$DATA_DIR'" 0
+touch "$DATA_DIR"/empty_torrc
+
# 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"
+TOR="./src/or/tor --hush --DisableNetwork 1 --ShutdownWaitLength 0 --ORPort 12345 --ExitRelay 0 -f $DATA_DIR/empty_torrc"
if [ -s "$DATA_DIR"/keys/secret_id_key ] && [ -s "$DATA_DIR"/keys/secret_onion_key ] &&
[ -s "$DATA_DIR"/keys/secret_onion_key_ntor ]; then