diff options
| author | Junio C Hamano <gitster@pobox.com> | 2020-04-22 13:42:43 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2020-04-22 13:42:43 -0700 |
| commit | d72fa768f497ddc7e29bae3ad9cd1337dca633b5 (patch) | |
| tree | 22a262249fd0c3a8525299441982abbe659d00bb /t/test-lib.sh | |
| parent | d82c528fc197691e21f51a8783685471b2640dad (diff) | |
| parent | d3507cc71286c669674d8e184a3796de6af0cea7 (diff) | |
| download | git-d72fa768f497ddc7e29bae3ad9cd1337dca633b5.tar.gz | |
Merge branch 'js/test-junit-finalization-fix'
Test fix.
* js/test-junit-finalization-fix:
tests(junit-xml): avoid invalid XML
Diffstat (limited to 't/test-lib.sh')
| -rw-r--r-- | t/test-lib.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index b831e1d252..dfe93a6fb6 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -1072,6 +1072,7 @@ finalize_junit_xml () { junit_time=$(test-tool date getnanos $junit_suite_start) sed -e "s/\(<testsuite.*\) time=\"[^\"]*\"/\1/" \ -e "s/<testsuite [^>]*/& time=\"$junit_time\"/" \ + -e '/^ *<\/testsuite/d' \ <"$junit_xml_path" >"$junit_xml_path.new" mv "$junit_xml_path.new" "$junit_xml_path" |
