commit | c5dd40b5b2812f44cffd6047e95793459270fc8a | [log] [tgz] |
---|---|---|
author | Jenkins <jenkins@review.openstack.org> | Fri May 02 17:21:06 2014 +0000 |
committer | Gerrit Code Review <review@openstack.org> | Fri May 02 17:21:06 2014 +0000 |
tree | 7e63142995e2c0b4a1fa0db286d00a1f4e39c083 | |
parent | 21b4479a0bb0aa3bca06c38e99245a30e98e368d [diff] | |
parent | fa6666c2cde880c3cbc715dd478449b908f4b4a6 [diff] |
Merge "Fix stress runner not stopping on first fail"
diff --git a/tempest/stress/driver.py b/tempest/stress/driver.py index e8ccc7c..517cfd5 100644 --- a/tempest/stress/driver.py +++ b/tempest/stress/driver.py
@@ -198,9 +198,9 @@ time.sleep(min(remaining, log_check_interval)) if stop_on_error: - for process in processes: - if process['statistic']['fails'] > 0: - break + if any([True for proc in processes + if proc['statistic']['fails'] > 0]): + break if not logfiles: continue