Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-04-22 23:42:43 +0300
committerJunio C Hamano <gitster@pobox.com>2020-04-22 23:42:43 +0300
commitd72fa768f497ddc7e29bae3ad9cd1337dca633b5 (patch)
tree22a262249fd0c3a8525299441982abbe659d00bb /t
parentd82c528fc197691e21f51a8783685471b2640dad (diff)
parentd3507cc71286c669674d8e184a3796de6af0cea7 (diff)
Merge branch 'js/test-junit-finalization-fix'
Test fix. * js/test-junit-finalization-fix: tests(junit-xml): avoid invalid XML
Diffstat (limited to 't')
-rw-r--r--t/test-lib.sh1
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"