зеркало из https://github.com/microsoft/git.git
Merge branch 'js/test-write-junit-xml-fix'
Testfix. * js/test-write-junit-xml-fix: tests: fix --write-junit-xml with subshells
This commit is contained in:
Коммит
966b69f02f
|
@ -1083,7 +1083,8 @@ finalize_junit_xml () {
|
||||||
|
|
||||||
# adjust the overall time
|
# adjust the overall time
|
||||||
junit_time=$(test-tool date getnanos $junit_suite_start)
|
junit_time=$(test-tool date getnanos $junit_suite_start)
|
||||||
sed "s/<testsuite [^>]*/& time=\"$junit_time\"/" \
|
sed -e "s/\(<testsuite.*\) time=\"[^\"]*\"/\1/" \
|
||||||
|
-e "s/<testsuite [^>]*/& time=\"$junit_time\"/" \
|
||||||
<"$junit_xml_path" >"$junit_xml_path.new"
|
<"$junit_xml_path" >"$junit_xml_path.new"
|
||||||
mv "$junit_xml_path.new" "$junit_xml_path"
|
mv "$junit_xml_path.new" "$junit_xml_path"
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче