]> git.ipfire.org Git - thirdparty/git.git/commit
test-lib tests: refactor common part of check_sub_test_lib_test*()
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 22 Sep 2021 11:19:51 +0000 (13:19 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Sep 2021 23:22:41 +0000 (16:22 -0700)
commite07b817cfca9d15e6930dc09344846fb5246d4d7
treecdd7dada4cbe29db5ab7bf6076f6a634e78f793d
parent12fe4909fa26ea0a1c653867f11b01888055840a
test-lib tests: refactor common part of check_sub_test_lib_test*()

Refactor the two check_sub_test_lib_test*() functions to avoid
duplicating the same comparison they did of stdout. This duplication
was initially added when check_sub_test_lib_test_err() was added in
0445e6f0a12 (test-lib: '--run' to run only specific tests,
2014-04-30).

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