diff options
Diffstat (limited to 'tests/bluez5')
-rw-r--r-- | tests/bluez5/parser.py | 20 | ||||
-rw-r--r-- | tests/bluez5/run_tests.py | 4 |
2 files changed, 2 insertions, 22 deletions
diff --git a/tests/bluez5/parser.py b/tests/bluez5/parser.py deleted file mode 100644 index e21814f..0000000 --- a/tests/bluez5/parser.py +++ /dev/null @@ -1,20 +0,0 @@ -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 diff --git a/tests/bluez5/run_tests.py b/tests/bluez5/run_tests.py index 238e2c7..569aedf 100644 --- a/tests/bluez5/run_tests.py +++ b/tests/bluez5/run_tests.py @@ -1,5 +1,5 @@ import pytest -import tests.bluez5.parser as parser +import plugins.agl_test_log as log from plugins.agl_test_ptest_base import PTESTBase class Bluez5Base(PTESTBase): @@ -8,7 +8,7 @@ class Bluez5Base(PTESTBase): def log_process(self): log_file = self.get_logfile() - self.case_info_list = parser.log_parse(log_file) + self.case_info_list = log.log_process_gnu(log_file) instance = Bluez5Base() instance.run_ptest() |