aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-08-25 14:05:25 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-10-13 12:12:44 +0200
commitc24b9d68c564713309044c7c15983926556dc234 (patch)
tree705a3c17e9c74f66f7cbb5f84f094dc2197b0f0b /tests
parent262520fcfe2544a7278b6b5967d0d8b605fd89d9 (diff)
tests/multiple-outputs.sh: Assert empty store
Diffstat (limited to 'tests')
-rw-r--r--tests/multiple-outputs.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/multiple-outputs.sh b/tests/multiple-outputs.sh
index 0bca12b42..0d45ad35b 100644
--- a/tests/multiple-outputs.sh
+++ b/tests/multiple-outputs.sh
@@ -76,7 +76,10 @@ if nix-build multiple-outputs.nix -A cyclic --no-out-link; then
exit 1
fi
+# Do a GC. This should leave an empty store.
echo "collecting garbage..."
rm $TEST_ROOT/result*
nix-store --gc --keep-derivations --keep-outputs
nix-store --gc --print-roots
+rm -rf $NIX_STORE_DIR/.links
+rmdir $NIX_STORE_DIR