From 2bb7968d0ddb6ace83c3832801a277fb67d96620 Mon Sep 17 00:00:00 2001 From: xudan Date: Tue, 6 Jun 2017 22:13:07 -0400 Subject: 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 --- dovetail/run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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): -- cgit 1.2.3-korg