From 8f83b67b8ac0a60ff4e3a5a5888474b3033f9b3a Mon Sep 17 00:00:00 2001 From: Qiu Tingting Date: Mon, 17 Apr 2023 10:01:07 +0800 Subject: agl-test-framework: Optimize common function log_process MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Change-Id: I92de3b781badac9cb6d55acd5cc0c601dc4a7c65 --- plugins/agl_test_log.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'plugins/agl_test_log.py') 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: -- cgit