summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrun_tests.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/run_tests.sh b/run_tests.sh
index 87a5e3b05..5e31f906a 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -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"