Git fork

ci(github): avoid printing test case preamble twice

We want to mark up the test case preamble when presenting test output in
Git's GitHub workflow. Let's suppress the non-marked-up version in that
case. Any information it would contain is included in the marked-up
variant already.

Signed-off-by: Victoria Dye <vdye@github.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

authored by

Victoria Dye and committed by
Junio C Hamano
110e9115 448de909

+4
+2
t/test-lib-functions.sh
··· 803 803 export test_prereq 804 804 if ! test_skip "$@" 805 805 then 806 + test -n "$test_skip_test_preamble" || 806 807 say >&3 "checking known breakage of $TEST_NUMBER.$test_count '$1': $2" 807 808 if test_run_ "$2" expecting_failure 808 809 then ··· 823 824 export test_prereq 824 825 if ! test_skip "$@" 825 826 then 827 + test -n "$test_skip_test_preamble" || 826 828 say >&3 "expecting success of $TEST_NUMBER.$test_count '$1': $2" 827 829 if test_run_ "$2" 828 830 then
+2
t/test-lib-github-workflow-markup.sh
··· 20 20 # workflows; these functions will then override (empty) functions 21 21 # that are are called at the appropriate times during the test runs. 22 22 23 + test_skip_test_preamble=t 24 + 23 25 start_test_output () { 24 26 test -n "$GIT_TEST_TEE_OUTPUT_FILE" || 25 27 die "--github-workflow-markup requires --verbose-log"