aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/run_performance_tests.py
diff options
context:
space:
mode:
authorGravatar Alexander Polcyn <apolcyn@google.com>2016-10-22 17:41:23 -0700
committerGravatar Alexander Polcyn <apolcyn@google.com>2016-10-22 17:41:23 -0700
commit898a2e91f956fe36e6061e3b20727e352bccb263 (patch)
tree74f8f45a9844edb4da83fe275eb78837e3b07c43 /tools/run_tests/run_performance_tests.py
parentcac93f673e80a4568790b6e478fbe7dd95962f34 (diff)
clean up error message
Diffstat (limited to 'tools/run_tests/run_performance_tests.py')
-rwxr-xr-xtools/run_tests/run_performance_tests.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/run_tests/run_performance_tests.py b/tools/run_tests/run_performance_tests.py
index 732e267561..317656b40d 100755
--- a/tools/run_tests/run_performance_tests.py
+++ b/tools/run_tests/run_performance_tests.py
@@ -453,7 +453,7 @@ if not scenarios:
raise Exception('No scenarios to run')
total_scenario_failures = 0
-total_jobs_killed = 0
+qps_workers_killed = 0
for scenario in scenarios:
if args.dry_run:
print(scenario.name)
@@ -466,9 +466,9 @@ for scenario in scenarios:
newline_on_success=True, maxjobs=1)
total_scenario_failures += scenario_failures
finally:
- # Consider jobs that need to be killed as failures
- total_jobs_killed += finish_qps_workers(scenario.workers)
+ # Consider qps workers that need to be killed as failures
+ qps_workers_killed += finish_qps_workers(scenario.workers)
-if num_failures > 0:
- print(str(total_scenario_failures) + " scenarios failed and " + str(total_jobs_killed) + " jobs killed")
+if total_scenario_failures > 0 or qps_workers_killed > 0:
+ print ("%s scenarios failed and %s qps worker jobs killed" % (total_scenario_failures, qps_workers_killed))
sys.exit(1)