diff options
author | Moshe <moshehoa@amdocs.com> | 2019-01-29 08:33:17 +0200 |
---|---|---|
committer | Moshe <moshehoa@amdocs.com> | 2019-01-29 08:33:56 +0200 |
commit | 50102ad9b8545ec7b3258025b0f6c0ef6cd0d223 (patch) | |
tree | b2d0e110b7ddbf6fe90b16db8ed1b02cbc029540 /vnftest/runners | |
parent | 05837c6b540be12f8786edd8edc3a19c51466865 (diff) |
refactor error handling
Issue-ID: VNFSDK-350
Change-Id: I1486907e291539e3e59c5be03cc0955159613f84
Signed-off-by: Moshe <moshehoa@amdocs.com>
Diffstat (limited to 'vnftest/runners')
-rw-r--r-- | vnftest/runners/iteration.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vnftest/runners/iteration.py b/vnftest/runners/iteration.py index 1fec101..9fa5ffc 100644 --- a/vnftest/runners/iteration.py +++ b/vnftest/runners/iteration.py @@ -80,7 +80,9 @@ def _worker_process(result_queue, cls, method_name, step_cfg, except AssertionError as assertion: # SLA validation failed in step, determine what to do now if sla_action == "assert": - raise + errors.append(assertion) + LOG.info("Assersion error") + fatal_error = True elif sla_action == "monitor": LOG.warning("SLA validation failed: %s", assertion.args) errors.append(assertion.args) |