From c7478345b2b4a85cb1fec40e762633871f0e94cb Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 29 Jan 2019 12:08:26 +0000 Subject: 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. Signed-off-by: Richard Purdie --- meta/lib/oeqa/runtime/cases/ptest.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'meta/lib/oeqa/runtime/cases/ptest.py') 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): # a ptest log parser def parse_ptest(self, logfile): - parser = Lparser(test_0_pass_regex="^PASS:(.+)", - test_0_fail_regex="^FAIL:(.+)", - test_0_skip_regex="^SKIP:(.+)", - section_0_begin_regex="^BEGIN: .*/(.+)/ptest", - section_0_end_regex="^END: .*/(.+)/ptest") - parser.init() + parser = Lparser() result = Result() with open(logfile, errors='replace') as f: -- cgit 1.2.3-korg