diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-09-03 14:53:50 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-09-03 14:53:50 -0400 |
commit | 604a18e680ef139513ba630391f655fb6394eae1 (patch) | |
tree | d00b61151b18040a0a235f011ec8af28e9aada3c /src/test/test_keygen.sh | |
parent | b63034ce3e5ffd46ad37294dabe742d6b23366ba (diff) | |
download | tor-604a18e680ef139513ba630391f655fb6394eae1.tar.gz tor-604a18e680ef139513ba630391f655fb6394eae1.zip |
Use absolute path for datadir in test_keygen.sh
Diffstat (limited to 'src/test/test_keygen.sh')
-rwxr-xr-x | src/test/test_keygen.sh | 3 |
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" |