From 5c793ad03e08f8f795397af1d49034ac6f616ade Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 14 Aug 2007 13:43:51 +0000 Subject: [PATCH] * Hopefully this fixes the test on FreeBSD. --- tests/common.sh.in | 2 +- tests/remote-store.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/common.sh.in b/tests/common.sh.in index 4228811ff..dde95dd13 100644 --- a/tests/common.sh.in +++ b/tests/common.sh.in @@ -2,7 +2,7 @@ set -e export TEST_ROOT=$(pwd)/test-tmp export NIX_STORE_DIR -if ! NIX_STORE_DIR=$(readlink -f $TEST_ROOT/store); then +if ! NIX_STORE_DIR=$(readlink -f $TEST_ROOT/store 2> /dev/null); then # Maybe the build directory is symlinked. export NIX_IGNORE_SYMLINK_STORE=1 NIX_STORE_DIR=$TEST_ROOT/store diff --git a/tests/remote-store.sh b/tests/remote-store.sh index 4a31312f5..1e5a4356e 100644 --- a/tests/remote-store.sh +++ b/tests/remote-store.sh @@ -5,13 +5,13 @@ export FORCE_NIX_REMOTE=1 echo '*** testing slave mode ***' clearStore clearManifests -NIX_REMOTE=slave sh ./user-envs.sh +NIX_REMOTE=slave $SHELL ./user-envs.sh echo '*** testing daemon mode ***' clearStore clearManifests $nixworker --daemon & pidDaemon=$! -NIX_REMOTE=daemon sh ./user-envs.sh +NIX_REMOTE=daemon $SHELL ./user-envs.sh kill -9 $pidDaemon wait $pidDaemon || true