diff options
author | Jenkins <jenkins@review.openstack.org> | 2012-10-24 19:31:25 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2012-10-24 19:31:25 +0000 |
commit | 6581a6cdc92e540b1f5cb5bc52bb0b65138220cf (patch) | |
tree | 40159b91762678c2ca7886cb141a693ed0439c5a | |
parent | bd38d1eb802cd4d207ac5fbb107e6fa2d3458373 (diff) | |
parent | 51cc2eb3a7a8116e727bcc907a726e5af0a18b0c (diff) | |
download | nova-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"
-rwxr-xr-x | run_tests.sh | 2 |
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" |