diff options
author | Qiu Tingting <qiutt@fujitsu.com> | 2023-04-17 10:01:07 +0800 |
---|---|---|
committer | Qiu Tingting <qiutt@fujitsu.com> | 2023-04-21 00:39:23 +0000 |
commit | 8f83b67b8ac0a60ff4e3a5a5888474b3033f9b3a (patch) | |
tree | 1081c6f54ce67a1932290ec75968723e72aa8b86 /plugins | |
parent | 9b9fd4724424c9758cdb5f66b66ae61da177a8a6 (diff) |
agl-test-framework: Optimize common function log_process
Add new commone function log_process_gnu for the following tests:
acl
attr
bash
bc
bluez5
busybox
cpio
libpam
libxml2
zlib
SPEC-4758
Signed-off-by: Qiu Tingting <qiutt@fujitsu.com>
Change-Id: I92de3b781badac9cb6d55acd5cc0c601dc4a7c65
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/agl_test_log.py | 23 |
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: |