aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/agl_test_log.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/agl_test_log.py')
-rw-r--r--plugins/agl_test_log.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/agl_test_log.py b/plugins/agl_test_log.py
index e064047..b4a273e 100644
--- a/plugins/agl_test_log.py
+++ b/plugins/agl_test_log.py
@@ -54,16 +54,13 @@ gnome_desktop_testing log formate:
SKIP: glib/testname.test
'''
def log_process_gnome_desktop_testing(log):
- pattern = '^(FAIL|PASS|SKIP.+?): (.+test?)'
+ pattern = '^(FAIL|PASS|SKIP+?): (.+test?)'
parse_result = log_parse(log, pattern)
- test_cases_values_and_status = [["test_id","values","status"]]
-
+ case_list = dict()
if parse_result:
for item in parse_result:
- item_result = [item[1], item[0], ""]
- test_cases_values_and_status.append(item_result)
-
- return test_cases_values_and_status
+ case_list[item[1]] = [item[1], item[0], ""]
+ return case_list
# parse log file with pattern
def log_parse(log, pattern):