diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-07-27 23:00:25 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-07-27 23:00:26 +0300 |
commit | c896716d7725c1098940898c13aa1e65337c2a92 (patch) | |
tree | 3876cec14c0d472bf49bd3aa1a8b03bf81d0e903 /t | |
parent | bbea4dcf42b28eb7ce64a6306cdde875ae5d09ca (diff) | |
parent | 7253f7ca9fdc5a19f2a9ee5867a20182e10551d6 (diff) |
Merge branch 'js/ci-github-workflow-markup' into maint
A fix for a regression in test framework.
source: <pull.1288.git.1657789234416.gitgitgadget@gmail.com>
* js/ci-github-workflow-markup:
tests: fix incorrect --write-junit-xml code
Diffstat (limited to 't')
-rw-r--r-- | t/test-lib-junit.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/t/test-lib-junit.sh b/t/test-lib-junit.sh index c959183c7e..79c31c788b 100644 --- a/t/test-lib-junit.sh +++ b/t/test-lib-junit.sh @@ -46,7 +46,7 @@ finalize_test_case_output () { shift case "$test_case_result" in ok) - set "$*" + set -- "$*" ;; failure) junit_insert="<failure message=\"not ok $test_count -" @@ -65,17 +65,17 @@ finalize_test_case_output () { junit_insert="$junit_insert<system-err>$(xml_attr_encode \ "$(cat "$GIT_TEST_TEE_OUTPUT_FILE")")</system-err>" fi - set "$1" " $junit_insert" + set -- "$1" " $junit_insert" ;; fixed) - set "$* (breakage fixed)" + set -- "$* (breakage fixed)" ;; broken) - set "$* (known breakage)" + set -- "$* (known breakage)" ;; skip) message="$(xml_attr_encode --no-lf "$skipped_reason")" - set "$1" " <skipped message=\"$message\" />" + set -- "$1" " <skipped message=\"$message\" />" ;; esac |