diff options
author | duerpei <duep.fnst@fujitsu.com> | 2022-06-16 11:50:57 +0800 |
---|---|---|
committer | duerpei <duep.fnst@fujitsu.com> | 2022-06-16 11:50:57 +0800 |
commit | 562d91e1446047dcf340116dec2161c2f11d0745 (patch) | |
tree | 11fb3b67b9088866518876b9fb3d621a171c4ba4 /plugins | |
parent | 18633e747c6bb469f31d2bc2e595b85099865b4f (diff) |
agl-test-framework: use PTESTBaseTest class
Move the "run_tests" script of glib2 under "qa-test-misc"
to "agl-test-framework", this is more reasonable.
And modify the script file run_tests under glib2, make it
use PTESTBaseTest class.
Later, I will delete the "run_tests" scripts under "qa-test-misc"
Bug-AGL: SPEC-4345
Signed-off-by: duerpei <duep.fnst@fujitsu.com>
Change-Id: Id055b829954bf8bdf75a90ff5b417baae0c4d5fb
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/agl_test_log.py | 11 |
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): |