mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
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:
parent
137268d332
commit
90d99b346f
12
third_party/forked/shell2junit/sh2ju.sh
vendored
12
third_party/forked/shell2junit/sh2ju.sh
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user