diff options
author | 2022-10-22 17:17:15 +0800 | |
---|---|---|
committer | 2023-01-20 16:03:16 +0000 | |
commit | 95ea8f3633f58cd5433e36c10074df5fe19a125a (patch) | |
tree | 0af6c51b4acb3b510248d117b76a62ab48b15f8a /tests/busybox/parser.py | |
parent | 2f9db91f9e63e7b746770b17c2c9204ff663a7de (diff) |
agl-test-framework: enable ptest of 'busybox'
Enable the test suite of 'busybox' from ptest
Bug-AGL: SPEC-4345
Signed-off-by: duerpei <duep.fnst@fujitsu.com>
Change-Id: I960f013d47f893f65766628da443ad6dce6f1009
Diffstat (limited to 'tests/busybox/parser.py')
-rw-r--r-- | tests/busybox/parser.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/busybox/parser.py b/tests/busybox/parser.py new file mode 100644 index 0000000..e21814f --- /dev/null +++ b/tests/busybox/parser.py @@ -0,0 +1,20 @@ +import re + +def log_parse(log_file): + reObj = re.compile('^(PASS|FAIL|SKIP): (.+)', re.MULTILINE) + case_list = dict() + test_log = open(log_file, 'r') + + line = test_log.readline() + while line: + matchs = reObj.search(line) + + if matchs: + groups = list(matchs.groups()) + case_list[groups[1]] = [groups[1], groups[0], ""] + + line = test_log.readline() + + test_log.close() + + return case_list |