From af3db853fa273b44ccffbbd62357a0451ecb6725 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 19 Oct 2016 15:17:39 +0200 Subject: Handle $TMPDIR ending with a slash This caused the gc test to fail on Darwin. --- tests/common.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/common.sh.in') 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. -- cgit 1.4.1