]> git.ipfire.org Git - thirdparty/git.git/commit
t7900: clean up large EXPENSIVE repository
authorPatrick Steinhardt <ps@pks.im>
Mon, 6 Jul 2026 06:24:01 +0000 (08:24 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Jul 2026 14:21:57 +0000 (07:21 -0700)
commitaa4ee1f0a86e2a01f68af63560d94679fc8dd4f5
tree0ea46cc7479b6afb283fd63fc858a9ec7fa01f35
parent8f276d146c55247eea4f5304d6b5e9ef293cefaf
t7900: clean up large EXPENSIVE repository

One of the tests in t7900 is marked with EXPENSIVE because we create a
repository with 2GB of data that we end up repacking. We never clean up
that repository though, so we occupy the full 2GB of data until the end
of the test suite.

Besides clogging our disk, having an EXPENSIVE test that alters the
repository's state used by subsequent tests is also a bad idea, as it
can easily have an impact on the heuristics used by other maintenance
tasks.

Adapt the test so that we create the data in a standalone repository
that we clean up at the end of the test. While at it, also disable
auto-maintenance so that it does not race with our manual maintenance.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7900-maintenance.sh