summaryrefslogtreecommitdiffstats
path: root/run_tests.sh
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-10-24 19:31:25 +0000
committerGerrit Code Review <review@openstack.org>2012-10-24 19:31:25 +0000
commit6581a6cdc92e540b1f5cb5bc52bb0b65138220cf (patch)
tree40159b91762678c2ca7886cb141a693ed0439c5a /run_tests.sh
parentbd38d1eb802cd4d207ac5fbb107e6fa2d3458373 (diff)
parent51cc2eb3a7a8116e727bcc907a726e5af0a18b0c (diff)
downloadnova-6581a6cdc92e540b1f5cb5bc52bb0b65138220cf.tar.gz
nova-6581a6cdc92e540b1f5cb5bc52bb0b65138220cf.tar.xz
nova-6581a6cdc92e540b1f5cb5bc52bb0b65138220cf.zip
Merge "Fix the fail-on-zero-tests case so that it is tolerant of no output"
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-xrun_tests.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/run_tests.sh b/run_tests.sh
index 9385b4185..dd1145d2c 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"