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.
This commit is contained in:
Ryan Hitchman 2018-03-28 20:10:31 -07:00
parent 137268d332
commit 90d99b346f

View File

@ -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