summaryrefslogtreecommitdiffstats
path: root/testcases/Controllers/ODL
diff options
context:
space:
mode:
Diffstat (limited to 'testcases/Controllers/ODL')
-rwxr-xr-xtestcases/Controllers/ODL/odlreport2db.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/testcases/Controllers/ODL/odlreport2db.py b/testcases/Controllers/ODL/odlreport2db.py
index 0c9f341c9..368d26611 100755
--- a/testcases/Controllers/ODL/odlreport2db.py
+++ b/testcases/Controllers/ODL/odlreport2db.py
@@ -66,12 +66,16 @@ def parse_test(tests, details):
def parse_suites(suites):
data = {}
details = []
- try:
- for suite in suites:
- data['details'] = parse_test(suite['test'], details)
- except TypeError:
- # suites is not iterable
- data['details'] = parse_test(suites['test'], details)
+ for suite in suites:
+ a = suite['suite']
+ if type(a) == list:
+ for b in a:
+ data['details'] = parse_test(b['test'], details)
+ else:
+ data['details'] = parse_test(a['test'], details)
+
+ # data['details'] = parse_test(suite['test'], details)
+ # suites is not iterable
return data