aboutsummaryrefslogtreecommitdiff
path: root/tests/ca/build-with-garbage-path.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ca/build-with-garbage-path.sh')
-rwxr-xr-xtests/ca/build-with-garbage-path.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ca/build-with-garbage-path.sh b/tests/ca/build-with-garbage-path.sh
index 9aa08a899..884cd2802 100755
--- a/tests/ca/build-with-garbage-path.sh
+++ b/tests/ca/build-with-garbage-path.sh
@@ -8,7 +8,7 @@ requireDaemonNewerThan "2.4pre20210621"
# Get the output path of `rootCA`, and put some garbage instead
outPath="$(nix-build ./content-addressed.nix -A rootCA --no-out-link)"
-nix-store --delete "$outPath"
+nix-store --delete $(nix-store -q --referrers-closure "$outPath")
touch "$outPath"
# The build should correctly remove the garbage and put the expected path instead