Merge "Fix the fail-on-zero-tests case so that it is tolerant of no output"

This commit is contained in:
Jenkins 2012-10-24 19:31:25 +00:00 committed by Gerrit Code Review
commit 6581a6cdc9

View File

@ -100,7 +100,7 @@ function run_tests {
fi
else
tests_run=$(awk '/^Ran/ {print $2}' nosetests.log)
if [ "$tests_run" -eq 0 ];
if [ -z "$tests_run" ] || [ "$tests_run" -eq 0 ];
then
echo "ERROR: Zero tests ran, something is wrong!"
echo "This is usually caused by a parse error in some python"