about summary refs log tree commit diff
path: root/tests/common.sh.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2007-08-14T13·43+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-08-14T13·43+0000
commit5c793ad03e08f8f795397af1d49034ac6f616ade (patch)
treef0fdb7da3f9f4e8f05844bd51a42453f19a93a59 /tests/common.sh.in
parentffa1c61cd50a512685b44c55261c1539890482f4 (diff)
* Hopefully this fixes the test on FreeBSD.
Diffstat (limited to 'tests/common.sh.in')
-rw-r--r--tests/common.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/common.sh.in b/tests/common.sh.in
index 4228811ff9b5..dde95dd13ca3 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