diff --git a/third_party/forked/shell2junit/sh2ju.sh b/third_party/forked/shell2junit/sh2ju.sh index e7fcc6cf86..c33d6f3ce0 100755 --- a/third_party/forked/shell2junit/sh2ju.sh +++ b/third_party/forked/shell2junit/sh2ju.sh @@ -137,11 +137,6 @@ function juLog() { content="$content $failure - - - ^^g" $juDIR/junit-$suite.xml ## remove testSuite so we can add it later + sed -i "s^^^g" $juDIR/junit-$suite.xml cat <> "$juDIR/junit-$suite.xml" $content + EOF else # no file exists. Adding a new file cat < "$juDIR/junit-$suite.xml" + + $content + EOF fi