aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRex Lee <limingjiang@huawei.com>2018-07-06 06:45:01 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-07-06 06:45:01 +0000
commit7823bf5ddee277c8abe99aed840eb9802425adaf (patch)
treec6a638cb8d709040fd593c5b5b00a2057749c982
parent1ebd7676a4b409c7b653ee2258d782cdebe2f970 (diff)
parent30fc9f545d526fdbd69af483b0bad0ea781d648c (diff)
Merge "[Bug fix] Execute teardown if SLA is set to "assert""
-rw-r--r--yardstick/benchmark/runners/duration.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/yardstick/benchmark/runners/duration.py b/yardstick/benchmark/runners/duration.py
index 60f1fa536..14fd8bb47 100644
--- a/yardstick/benchmark/runners/duration.py
+++ b/yardstick/benchmark/runners/duration.py
@@ -74,6 +74,7 @@ def _worker_process(queue, cls, method_name, scenario_cfg,
except y_exc.SLAValidationError as error:
# SLA validation failed in scenario, determine what to do now
if sla_action == "assert":
+ benchmark.teardown()
raise
elif sla_action == "monitor":
LOG.warning("SLA validation failed: %s", error.args)