diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-10-19T13·17+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-10-19T13·19+0200 |
commit | af3db853fa273b44ccffbbd62357a0451ecb6725 (patch) | |
tree | 61a4c7456fc95d1987520890a420bab307e94213 /tests/common.sh.in | |
parent | 29727ff944be7e00c31ad95d0958e6fabc7d12a4 (diff) |
Handle $TMPDIR ending with a slash
This caused the gc test to fail on Darwin.
Diffstat (limited to 'tests/common.sh.in')
-rw-r--r-- | tests/common.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/common.sh.in b/tests/common.sh.in index 316d5f6896bb..4565a490adfd 100644 --- a/tests/common.sh.in +++ b/tests/common.sh.in @@ -2,7 +2,7 @@ set -e datadir="@datadir@" -export TEST_ROOT=${TMPDIR:-/tmp}/nix-test +export TEST_ROOT=$(realpath ${TMPDIR:-/tmp}/nix-test) export NIX_STORE_DIR if ! NIX_STORE_DIR=$(readlink -f $TEST_ROOT/store 2> /dev/null); then # Maybe the build directory is symlinked. |