Skip to content

Commit

Permalink
tests/multiple-outputs.sh: Assert empty store
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Oct 6, 2021
1 parent 75b4e88 commit 64b81d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/multiple-outputs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 64b81d6

Please sign in to comment.