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.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/agl_test_log.py b/plugins/agl_test_log.py
index 958a9a8..31c6b6d 100644
--- a/plugins/agl_test_log.py
+++ b/plugins/agl_test_log.py
@@ -52,9 +52,32 @@ gnome_desktop_testing log formate:
PASS: glib/tls-database.test
FAIL: glib/markup-escape.test
SKIP: glib/testname.test
+ XFAIL: test/nfs/nfsacl.test
+ XPASS: xxx/xxxx.test
+ ERROR: xxx/xxxx.test
'''
def log_process_gnome_desktop_testing(log):
pattern = '^(FAIL|PASS|SKIP|XFAIL|XPASS|ERROR+?): (.+test?)'
+ return log_process_with_pattern(log, pattern)
+
+'''
+Process the log and init test_cases_values_and_status.
+
+log : the path of log file
+
+log formate:
+ PASS: case_name
+ FAIL: case_name
+ SKIP: case_name
+ XFAIL: case_name
+ XPASS: case_name
+ ERROR: case_name
+'''
+def log_process_gnu(log):
+ pattern = '^(FAIL|PASS|SKIP|XFAIL|XPASS|ERROR+?): (.+)'
+ return log_process_with_pattern(log, pattern)
+
+def log_process_with_pattern(log, pattern):
parse_result = log_parse(log, pattern)
case_list = dict()
if parse_result: