Change-Id: Icfab7ead860d96cef119cc63e9fccfd9d62c009d
Signed-off-by: boucherv <valentin.boucher@orange.com>
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)
# - 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")