]> git.ipfire.org Git - thirdparty/git.git/commit
t/pack-refs-tests: move the 'test_done' to callees
authorKarthik Nayak <karthik.188@gmail.com>
Mon, 20 Oct 2025 08:18:31 +0000 (10:18 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 Nov 2025 15:35:12 +0000 (07:35 -0800)
commitc113f4ca4dbba5529af645f7d7837c7dae12b403
tree439d7e286ac21c230c5864498dd86d4a1411e666
parent2cd99d984122f7f1cd7c3b153ee0a0d566831b30
t/pack-refs-tests: move the 'test_done' to callees

In ac0bad0af4 (t0601: refactor tests to be shareable, 2025-09-19), we
refactored 't/t0601-reffiles-pack-refs.sh' to move all of the tests to
't/pack-refs-tests.sh', which became a common test suite which was also
used by 't/t1463-refs-optimize.sh'.

This also moved the 'test_done' directive to 't/pack-refs-tests.sh'.
Which inhibits additional tests from being added to either of the tests.
Let's move the directive out to both the tests, so that we can add
additional specific tests to them. Also the test flow logic shouldn't be
part of tests which can be embedded in other test scripts.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/pack-refs-tests.sh
t/t0601-reffiles-pack-refs.sh
t/t1463-refs-optimize.sh