diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-29 12:08:26 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-31 23:23:26 +0000 |
commit | 95427c47ab3a81d671f478aca1d920ebedabf611 (patch) | |
tree | 8b3812f1ae1573ef7675a6b4151562c4e80c2bd1 /meta/lib/oeqa/runtime | |
parent | fa2db6a72a11bc541d1e1698394dc1fe2d319eb9 (diff) | |
download | poky-95427c47ab3a81d671f478aca1d920ebedabf611.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)
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: |