From a92c70b82ef5e68ecbf0fbb6cd6c4d0b904df3af Mon Sep 17 00:00:00 2001 From: xudan Date: Tue, 25 Apr 2017 03:41:41 +0000 Subject: Bugfix: KeyError when tempest_custom runs wrong JIRA: DOVETAIL-406 1. When there are something wrong with the test case tempest_custom, it's details json data are "details": {}, So it will throw KeyError exception in this situation. 2. Catch this exception and set all sub_testcases FAIL. 3. Disable the exceed_max_retry_times(). Change-Id: I6bdfc5944a535625b2211a3bd8096a13b81b339e Signed-off-by: xudan --- dovetail/run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dovetail/run.py') diff --git a/dovetail/run.py b/dovetail/run.py index f268f921..607e1b15 100755 --- a/dovetail/run.py +++ b/dovetail/run.py @@ -54,8 +54,8 @@ def run_test(testsuite, testarea, logger): continue run_testcase = True - if testcase.exceed_max_retry_times(): - run_testcase = False + # if testcase.exceed_max_retry_times(): + # run_testcase = False # if testcase.script_result_acquired(): # run_testcase = False -- cgit 1.2.3-korg