summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2017-06-06 22:13:07 -0400
committerxudan <xudan16@huawei.com>2017-06-06 22:13:07 -0400
commit2bb7968d0ddb6ace83c3832801a277fb67d96620 (patch)
treee6ef2352a5eb538d0640be959ad5b9f1efb77c70
parentdf9fb1edfad233bd2ee0fb55e80a0a9d644b7742 (diff)
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 <xudan16@huawei.com>
-rwxr-xr-xdovetail/run.py4
1 files 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):