From 9d213f1184da23c417944aa79a8dff2a6d8f4316 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 25 Aug 2021 14:05:25 +0200 Subject: [PATCH] tests/multiple-outputs.sh: Assert empty store --- tests/multiple-outputs.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/multiple-outputs.sh b/tests/multiple-outputs.sh index 0bca12b42f1e..0d45ad35bb5e 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