summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-29 12:08:26 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-31 23:23:26 +0000
commit95427c47ab3a81d671f478aca1d920ebedabf611 (patch)
tree8b3812f1ae1573ef7675a6b4151562c4e80c2bd1 /meta/lib/oeqa/runtime
parentfa2db6a72a11bc541d1e1698394dc1fe2d319eb9 (diff)
downloadpoky-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.py7
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: