about summary refs log tree commit diff
path: root/tests/binary-cache.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/binary-cache.sh')
-rw-r--r--tests/binary-cache.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/binary-cache.sh b/tests/binary-cache.sh
index 9bd4fecb6dec..45e67bee715f 100644
--- a/tests/binary-cache.sh
+++ b/tests/binary-cache.sh
@@ -2,11 +2,9 @@ source common.sh
 
 clearStore
 clearManifests
+clearCache
 
 # Create the binary cache.
-cacheDir=$TEST_ROOT/binary-cache
-rm -rf "$cacheDir"
-
 outPath=$(nix-build dependencies.nix --no-out-link)
 
 nix-push --dest $cacheDir $outPath