about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-05-30T18·22+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-05-30T18·24+0200
commitf7be7324b433b0ac6385d5981054030524c92c4e (patch)
treef40beaee269a41f1529c87279e676db256aac432 /tests
parentf53b3ef693465ebf3ea0b6f0e8fe087137909395 (diff)
Forgot to commit
Diffstat (limited to 'tests')
-rw-r--r--tests/common.sh.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/common.sh.in b/tests/common.sh.in
index 9e8962f1a60f..756c20c9d9d6 100644
--- a/tests/common.sh.in
+++ b/tests/common.sh.in
@@ -17,6 +17,9 @@ export NIX_CONF_DIR=$TEST_ROOT/etc
 export NIX_MANIFESTS_DIR=$TEST_ROOT/var/nix/manifests
 export _NIX_TEST_SHARED=$TEST_ROOT/shared
 export NIX_REMOTE=$NIX_REMOTE_
+export TEST_HOME=$TEST_ROOT/test-home
+export HOME=$TEST_HOME
+mkdir -p $TEST_HOME
 
 export PATH=@bindir@:$PATH
 
@@ -58,6 +61,10 @@ clearCache() {
     rm -rf "$cacheDir"
 }
 
+clearCacheCache() {
+    rm -f $TEST_HOME/.cache/nix/binary-cache*
+}
+
 startDaemon() {
     # Start the daemon, wait for the socket to appear.  !!!
     # ‘nix-daemon’ should have an option to fork into the background.