summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/cases/ptest.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-29 13:00:41 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-31 23:23:26 +0000
commit4ee85b1cd63f8c6c9d057faab0935c0e6763996b (patch)
treedd5cc37d4b384795c3352786d16ebb1eece752e4 /meta/lib/oeqa/runtime/cases/ptest.py
parent95427c47ab3a81d671f478aca1d920ebedabf611 (diff)
downloadpoky-4ee85b1cd63f8c6c9d057faab0935c0e6763996b.tar.gz
oeqa/logparser: Further simplification/clarification
Rename the paster to be ptest specific and apply some further cleanups to the code to simplify and clarify what its doing. (From OE-Core rev: 45a5886f1ec458d4c306b8d68fd31d568bc36b47) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/cases/ptest.py')
-rw-r--r--meta/lib/oeqa/runtime/cases/ptest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/runtime/cases/ptest.py b/meta/lib/oeqa/runtime/cases/ptest.py
index ebef3f9eac..1ce22a09e7 100644
--- a/meta/lib/oeqa/runtime/cases/ptest.py
+++ b/meta/lib/oeqa/runtime/cases/ptest.py
@@ -6,13 +6,13 @@ from oeqa.core.decorator.depends import OETestDepends
6from oeqa.core.decorator.oeid import OETestID 6from oeqa.core.decorator.oeid import OETestID
7from oeqa.core.decorator.data import skipIfNotFeature 7from oeqa.core.decorator.data import skipIfNotFeature
8from oeqa.runtime.decorator.package import OEHasPackage 8from oeqa.runtime.decorator.package import OEHasPackage
9from oeqa.utils.logparser import Lparser, Result 9from oeqa.utils.logparser import PtestParser, Result
10 10
11class PtestRunnerTest(OERuntimeTestCase): 11class 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() 15 parser = PtestParser()
16 result = Result() 16 result = Result()
17 17
18 with open(logfile, errors='replace') as f: 18 with open(logfile, errors='replace') as f:
@@ -20,7 +20,7 @@ class PtestRunnerTest(OERuntimeTestCase):
20 result_tuple = parser.parse_line(line) 20 result_tuple = parser.parse_line(line)
21 if not result_tuple: 21 if not result_tuple:
22 continue 22 continue
23 result_tuple = line_type, category, status, name = parser.parse_line(line) 23 line_type, category, status, name = result_tuple
24 24
25 if line_type == 'section' and status == 'begin': 25 if line_type == 'section' and status == 'begin':
26 current_section = name 26 current_section = name