Bugfix: KeyError when tempest_custom runs wrong 37/33737/1
authorxudan <xudan16@huawei.com>
Tue, 25 Apr 2017 03:41:41 +0000 (03:41 +0000)
committerxudan <xudan16@huawei.com>
Tue, 25 Apr 2017 03:41:41 +0000 (03:41 +0000)
commita92c70b82ef5e68ecbf0fbb6cd6c4d0b904df3af
treec057fc7f40a90cc8a91808105ec7a7267af0e97c
parentdfeb31d74c5193956a0e77ad76054fc4aa7b100b
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 <xudan16@huawei.com>
dovetail/report.py
dovetail/run.py