Merge "Fix the fail-on-zero-tests case so that it is tolerant of no output"
This commit is contained in:
commit
6581a6cdc9
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user