Merge branch 'js/test-junit-finalization-fix'
Test fix. * js/test-junit-finalization-fix: tests(junit-xml): avoid invalid XML
This commit is contained in:
commit
d72fa768f4
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user