From b4ee0f22d09e4010a193f71c44aea760a2707367 Mon Sep 17 00:00:00 2001 From: Ryan Hitchman Date: Fri, 16 Sep 2016 12:22:11 -0700 Subject: [PATCH] Make sh2ju not print 'error: 0' lines. They cause false positives on Gubernator when it's looking for error reasons. --- third_party/forked/shell2junit/sh2ju.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third_party/forked/shell2junit/sh2ju.sh b/third_party/forked/shell2junit/sh2ju.sh index d96e7b7a98..08f0114fef 100755 --- a/third_party/forked/shell2junit/sh2ju.sh +++ b/third_party/forked/shell2junit/sh2ju.sh @@ -113,7 +113,7 @@ function juLog() { H=`echo "$out" | egrep $icase "$ereg"` [ -n "$H" ] && err=1 fi - echo "+++ error: $err" | tee -a $outf + [ $err != 0 ] && echo "+++ error: $err" | tee -a $outf rm -f $outf errMsg=`cat $errf` @@ -174,4 +174,4 @@ EOF EOF fi -} \ No newline at end of file +}