about summary refs log tree commit diff
path: root/tests/common.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'tests/common.sh.in')
-rw-r--r--tests/common.sh.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/common.sh.in b/tests/common.sh.in
index 0c4df7119204..48ca7d2dddce 100644
--- a/tests/common.sh.in
+++ b/tests/common.sh.in
@@ -29,6 +29,8 @@ export SHELL="@bash@"
 export version=@PACKAGE_VERSION@
 export system=@system@
 
+cacheDir=$TEST_ROOT/binary-cache
+
 readLink() {
     ls -l "$1" | sed 's/.*->\ //'
 }
@@ -55,6 +57,10 @@ clearManifests() {
     rm -f $NIX_STATE_DIR/manifests/*
 }
 
+clearCache() {
+    rm -rf "$cacheDir"
+}
+
 startDaemon() {
     # Start the daemon, wait for the socket to appear.  !!!
     # ‘nix-daemon’ should have an option to fork into the background.