mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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>
20 lines
443 B
Bash
Executable File
20 lines
443 B
Bash
Executable File
#!/bin/sh
|
|
|
|
test_description='git refs optimize should not change the branch semantic
|
|
|
|
This test runs git refs optimize and git show-ref and checks that the branch
|
|
semantic is still the same.
|
|
'
|
|
|
|
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
|
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
|
GIT_TEST_DEFAULT_REF_FORMAT=files
|
|
export GIT_TEST_DEFAULT_REF_FORMAT
|
|
|
|
. ./test-lib.sh
|
|
|
|
pack_refs='refs optimize'
|
|
. "$TEST_DIRECTORY"/pack-refs-tests.sh
|
|
|
|
test_done
|