From f2a8bbddb91631b789494ead091f25ad5c5e09db Mon Sep 17 00:00:00 2001 From: Attila Fazekas Date: Sun, 23 Feb 2014 17:19:12 +0100 Subject: [PATCH] Fix stress runner exit issues 1. The stress runner in parallel run, regardless to the test failures returned with 0 (EXIT_SUCCESS) exit status. 2. Stress runner did not stopped run in serial execution, when the stop on first failure was enabled. Change-Id: Ifb71c58a2f676f8a3427160dbc5cfeab61d13b56 --- tempest/stress/run_stress.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tempest/stress/run_stress.py b/tempest/stress/run_stress.py index 76320d076b..a6c2b771b0 100755 --- a/tempest/stress/run_stress.py +++ b/tempest/stress/run_stress.py @@ -87,8 +87,13 @@ def main(ns): # NOTE(mkoderer): we just save the last result code if (step_result != 0): result = step_result + if ns.stop: + return result else: - driver.stress_openstack(tests, ns.duration, ns.number, ns.stop) + result = driver.stress_openstack(tests, + ns.duration, + ns.number, + ns.stop) return result