]> git.ipfire.org Git - thirdparty/git.git/commit
test-lib.sh: de-duplicate error() teardown code
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 14 Oct 2021 00:47:28 +0000 (02:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Oct 2021 16:54:54 +0000 (09:54 -0700)
commit8583bf75591398fff3c0ef44eb59cd23b4565298
tree3ee2c7564ccd05bebd79aaf1421f4350f3cfd2f0
parent2bd2f258f4195ac54293a3f45b86457c0bd5fc11
test-lib.sh: de-duplicate error() teardown code

De-duplicate the "finalize_junit_xml; GIT_EXIT_OK=t; exit 1" code
shared between the "error()" and "--immediate on failure" code paths,
in preparation for adding a third user in a subsequent commit.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh