diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-29 12:08:26 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-25 22:27:39 +0000 |
commit | f89486cda1508dcf5e4704eec4e44e45c0d1a66e (patch) | |
tree | fddd98028193dabbcbbc1a2275fd27f4f7faa23e /meta/lib/oeqa/runtime | |
parent | 31e10dd9279d3042e5778e8f671ae425aedd6561 (diff) | |
download | poky-f89486cda1508dcf5e4704eec4e44e45c0d1a66e.tar.gz |
oeqa/utils/logparser: Simplify ptest log parsing code
logparser is only used by ptest. Its slightly overcomplicated as it was
intended to be reusable but wasn't. Simplify it as a dedicated parser is
likely to me more readable and maintainable.
(From OE-Core rev: c7478345b2b4a85cb1fec40e762633871f0e94cb)
(From OE-Core rev: 1a6fcc97f3842deed3e78ededa8a21da274c0572)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime')
-rw-r--r-- | meta/lib/oeqa/runtime/cases/ptest.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/meta/lib/oeqa/runtime/cases/ptest.py b/meta/lib/oeqa/runtime/cases/ptest.py index 7d8849308d..ebef3f9eac 100644 --- a/meta/lib/oeqa/runtime/cases/ptest.py +++ b/meta/lib/oeqa/runtime/cases/ptest.py | |||
@@ -12,12 +12,7 @@ class PtestRunnerTest(OERuntimeTestCase): | |||
12 | 12 | ||
13 | # a ptest log parser | 13 | # a ptest log parser |
14 | def parse_ptest(self, logfile): | 14 | def parse_ptest(self, logfile): |
15 | parser = Lparser(test_0_pass_regex="^PASS:(.+)", | 15 | parser = Lparser() |
16 | test_0_fail_regex="^FAIL:(.+)", | ||
17 | test_0_skip_regex="^SKIP:(.+)", | ||
18 | section_0_begin_regex="^BEGIN: .*/(.+)/ptest", | ||
19 | section_0_end_regex="^END: .*/(.+)/ptest") | ||
20 | parser.init() | ||
21 | result = Result() | 16 | result = Result() |
22 | 17 | ||
23 | with open(logfile, errors='replace') as f: | 18 | with open(logfile, errors='replace') as f: |