diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-09-05 10:11:21 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-09-05 10:11:21 +0800 |
commit | 2157ee77e9827aa134ce2042276986f3d3523e9a (patch) | |
tree | 0d0486c340ec50b00ffda66340ee0f450166552a /reporting/yardstick | |
parent | b9f749d155051b90d0fefde2f5c0daff1970fcd2 (diff) |
make mongo_to_elasticsearch.py skip resolve-failed results
mongo_to_elasticsearch.py exit when encounter can-not-be-parsed results,
for example:
File "mongo_to_elasticsearch.py", line 58, in _convert_duration
hours, minutes, seconds = duration.split(":")
ValueError: need more than 2 values to unpack
File "mongo_to_elasticsearch.py", line 228, in modify_functest_odl
test_statuses = _get_dicts_from_list(testcase, testcase['details']['details'],
KeyError: 'details'
change the logic, try...Except the Exception, logger it as error, then
continue processing the rest results
Change-Id: I18facd457ba3e8f661f5c9a1da1e6c200af6fc4e
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'reporting/yardstick')
0 files changed, 0 insertions, 0 deletions