mirror of
https://github.com/NixOS/nix
synced 2025-07-07 14:21:48 +02:00
Handle $TMPDIR ending with a slash
This caused the gc test to fail on Darwin.
This commit is contained in:
parent
29727ff944
commit
af3db853fa
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue