diff options
Diffstat (limited to 'utils/test/scripts/mongo2elastic_format.py')
-rw-r--r-- | utils/test/scripts/mongo2elastic_format.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/utils/test/scripts/mongo2elastic_format.py b/utils/test/scripts/mongo2elastic_format.py index 0b036e3ff..ef485bae0 100644 --- a/utils/test/scripts/mongo2elastic_format.py +++ b/utils/test/scripts/mongo2elastic_format.py @@ -62,7 +62,14 @@ def format_rally(testcase): -> details.tests -> details.success_percentage """ - summary = testcase['details']['summary'] + details = testcase['details'] + summary = None + for item in details: + if 'summary' in item: + summary = item['summary'] + + if not summary: + return False testcase['details'] = { 'duration': summary['duration'], |