summaryrefslogtreecommitdiffstats
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.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/agl_test_log.py b/plugins/agl_test_log.py
index f7a0721..e064047 100644
--- a/plugins/agl_test_log.py
+++ b/plugins/agl_test_log.py
@@ -24,6 +24,25 @@ def log_process_default(log):
return test_cases_values_and_status
'''
+Process the log and init test_cases_values_and_status.
+
+log : the path of default log
+
+default log formate :
+ -> case_name: TEST-PASS
+ -> case_name: TEST-FAIL
+ -> case_name: TEST-SKIP
+'''
+def log_process(log):
+ pattern = '^ -> (.+?): (.+?)$'
+ parse_result = log_parse(log, pattern)
+ case_list = dict()
+ if parse_result:
+ for item in parse_result:
+ case_list[item[0]] = [item[0], item[1], ""]
+ return case_list
+
+'''
Process the log create by gnome_desktop_testing
and init test_cases_values_and_status.