Browse Source

Use absolute path for datadir in test_keygen.sh

Nick Mathewson 8 years ago
parent
commit
604a18e680
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/test/test_keygen.sh

+ 3 - 0
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"