summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/test/test_keygen.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_keygen.sh b/src/test/test_keygen.sh
index 6e852a9a58..917a8042cc 100755
--- a/src/test/test_keygen.sh
+++ b/src/test/test_keygen.sh
@@ -65,6 +65,9 @@ if [ ! -d "$DATA_DIR" ]; then
fi
trap "rm -rf '$DATA_DIR'" 0
+# Use an absolute path for this or Tor will complain
+DATA_DIR=`cd "${DATA_DIR}" && pwd`
+
touch "${DATA_DIR}/empty_torrc"
QUIETLY="--hush"