From: xudan Date: Wed, 7 Jun 2017 02:13:07 +0000 (-0400) Subject: Bugfix: KeyError when Functest fails to store results into file X-Git-Tag: ovp.0.9.0~154^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=2bb7968d0ddb6ace83c3832801a277fb67d96620;p=dovetail.git Bugfix: KeyError when Functest fails to store results into file JIRA: DOVETAIL-445 https://build.opnfv.org/ci/view/dovetail/job/dovetail-fuel-baremetal-proposed_tests-danube/19/console Change-Id: If933156bb3931e7bfc8ec31eb03ca5a3cb0bf8b0 Signed-off-by: xudan --- diff --git a/dovetail/run.py b/dovetail/run.py index 84bd88f3..09d69481 100755 --- a/dovetail/run.py +++ b/dovetail/run.py @@ -95,10 +95,10 @@ def check_tc_result(testcase, logger): return if os.path.isfile(result_file): logger.info("Results have been stored with file %s.", result_file) - result = Report.get_result(testcase) - Report.check_result(testcase, result) else: logger.error("Fail to store results with file %s.", result_file) + result = Report.get_result(testcase) + Report.check_result(testcase, result) def validate_input(input_dict, check_dict, logger):