diff --git a/scripts/run-all.bash b/scripts/run-all.bash index 75eef6bc14826f9ceead584c963943677c0fa2b4..310b9d41d1cf1dff8d2b17cbd16a050d229fd97f 100644 --- a/scripts/run-all.bash +++ b/scripts/run-all.bash @@ -12,3 +12,10 @@ rm -f logs/robot_stdout.log ## Filter Errors on code grep -rn " ERROR " logs/robot_stderr.log | grep -v "File has no tests or tasks" > logs/errors.log rm -f logs/robot_stderr.log + + +ERRORS=`awk 'END{print NR}' logs/errors.log logs/failures.log` +if [ "${ERRORS}" -eq 0 ]; then + rm -f logs/errors.log + rm -f logs/failures.log +fi \ No newline at end of file