From 060c49f1d7d63c7cf662a6f61e033385e76e8a3c Mon Sep 17 00:00:00 2001 From: boucherv Date: Mon, 21 Mar 2016 09:32:27 +0100 Subject: improve status criteria Change-Id: Icfab7ead860d96cef119cc63e9fccfd9d62c009d Signed-off-by: boucherv --- testcases/vIMS/CI/vIMS.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'testcases/vIMS') diff --git a/testcases/vIMS/CI/vIMS.py b/testcases/vIMS/CI/vIMS.py index 9aff4d8d6..1a7d89f47 100644 --- a/testcases/vIMS/CI/vIMS.py +++ b/testcases/vIMS/CI/vIMS.py @@ -124,7 +124,10 @@ def download_and_add_image_on_glance(glance, image_name, image_url): def step_failure(step_name, error_msg): logger.error(error_msg) set_result(step_name, 0, error_msg) - push_results() + status = "failed" + if step_name == "sig_test": + status = "passed" + push_results(status) exit(-1) @@ -250,9 +253,7 @@ def test_clearwater(): # - VNF deployed status = "failed" try: - # TODO precise condition, for the moment if duration > 3m, - # => I consider it is good.. - if RESULTS['orchestrator']['duration'] > 180 and RESULT['vIMS']['duration'] > 180: + if RESULTS['orchestrator']['duration'] > 0 and RESULT['vIMS']['duration'] > 0: status = "passed" except: logger.error("Unable to set test status") -- cgit 1.2.3-korg