Commit 90d99b34 authored by Ryan Hitchman's avatar Ryan Hitchman

Fix spurious whitespace in messages from sh2ju.

<failure> <![CDATA[ ... ]]> </failure> creates a <failure> tag with text == "\n\n...\n". It needs to be on one line.
parent 137268d3
......@@ -136,21 +136,13 @@ function juLog() {
# write the junit xml report
## failure tag
[[ ${err} = 0 ]] && failure="" || failure="
<failure type=\"ScriptError\" message=\"Script Error\">
<![CDATA[
${errMsg}
]]>
</failure>
<failure type=\"ScriptError\" message=\"Script Error\"><![CDATA[${errMsg}]]></failure>
"
## testcase tag
content="${content}
<testcase assertions=\"1\" name=\"${name}\" time=\"${time}\" classname=\"${class}\">
${failure}
<system-err>
<![CDATA[
${errMsg}
]]>
</system-err>
<system-err><![CDATA[${errMsg}]]></system-err>
</testcase>
"
## testsuite block
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment