Skip to content

Commit

Permalink
Revert "tests: include stdout of failed commands in JUnit"
Browse files Browse the repository at this point in the history
  • Loading branch information
aojea authored Jan 22, 2025
1 parent a444a5b commit 1065377
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions third_party/forked/shell2junit/sh2ju.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
### -ierror="RegExp" : same as -error but case insensitive
### -fail="RegExp" : Any line from stderr which contains this pattern becomes part of
### the failure messsage, without the text matching that pattern.
### Example: -fail="^ERROR: "
### Example: -failure="^ERROR: "
### Default is to use the entire stderr as failure message.
### -output="Path" : path to output directory, defaults to "./results"
### - Junit reports are left in the folder 'result' under the directory where the script is executed.
Expand Down Expand Up @@ -129,7 +129,6 @@ function juLog() {
[[ -n "${H}" ]] && err=1
fi
[[ ${err} -ne 0 ]] && echo "+++ error: ${err}" | tee -a ${outf}
outMsg=$(cat ${outf})
rm -f ${outf}

errMsg=$(cat ${errf})
Expand Down Expand Up @@ -164,7 +163,6 @@ ${failureMsg}
<testcase assertions=\"1\" name=\"${name}\" time=\"${time}\" classname=\"${class}\">
${failure}
<system-err><![CDATA[${errMsg}]]></system-err>
<system-out><![CDATA[${outMsg}]]></system-out>
</testcase>
"
## testsuite block
Expand Down

0 comments on commit 1065377

Please sign in to comment.