summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2017-08-21 18:23:06 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-23 14:16:01 +0100
commitf1c8488084bb77125d244301b63b6b796d7157db (patch)
treed36cf548399bb136beea89bbee498c9282ab1c47
parentdccf0efb41f27d9d654e527d213c0494421ed234 (diff)
downloadpoky-f1c8488084bb77125d244301b63b6b796d7157db.tar.gz
oeqa/utils/logparser.py: add skip status
Some test cases maybe skipped, let's parse it. [YOCTO #11547] (From OE-Core rev: f23c0f6a5aa93d38a5ea9d450f0accff0a5cc869) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/utils/logparser.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/lib/oeqa/utils/logparser.py b/meta/lib/oeqa/utils/logparser.py
index b377dcd271..4355ce0b76 100644
--- a/meta/lib/oeqa/utils/logparser.py
+++ b/meta/lib/oeqa/utils/logparser.py
@@ -9,7 +9,7 @@ from . import ftools
9# A parser that can be used to identify weather a line is a test result or a section statement. 9# A parser that can be used to identify weather a line is a test result or a section statement.
10class Lparser(object): 10class Lparser(object):
11 11
12 def __init__(self, test_0_pass_regex, test_0_fail_regex, section_0_begin_regex=None, section_0_end_regex=None, **kwargs): 12 def __init__(self, test_0_pass_regex, test_0_fail_regex, test_0_skip_regex, section_0_begin_regex=None, section_0_end_regex=None, **kwargs):
13 # Initialize the arguments dictionary 13 # Initialize the arguments dictionary
14 if kwargs: 14 if kwargs:
15 self.args = kwargs 15 self.args = kwargs
@@ -19,12 +19,13 @@ class Lparser(object):
19 # Add the default args to the dictionary 19 # Add the default args to the dictionary
20 self.args['test_0_pass_regex'] = test_0_pass_regex 20 self.args['test_0_pass_regex'] = test_0_pass_regex
21 self.args['test_0_fail_regex'] = test_0_fail_regex 21 self.args['test_0_fail_regex'] = test_0_fail_regex
22 self.args['test_0_skip_regex'] = test_0_skip_regex
22 if section_0_begin_regex: 23 if section_0_begin_regex:
23 self.args['section_0_begin_regex'] = section_0_begin_regex 24 self.args['section_0_begin_regex'] = section_0_begin_regex
24 if section_0_end_regex: 25 if section_0_end_regex:
25 self.args['section_0_end_regex'] = section_0_end_regex 26 self.args['section_0_end_regex'] = section_0_end_regex
26 27
27 self.test_possible_status = ['pass', 'fail', 'error'] 28 self.test_possible_status = ['pass', 'fail', 'error', 'skip']
28 self.section_possible_status = ['begin', 'end'] 29 self.section_possible_status = ['begin', 'end']
29 30
30 self.initialized = False 31 self.initialized = False