aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2017-08-21 18:23:07 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-23 14:12:39 +0100
commit5c89060e96919c9865034a0c64fde382763da71d (patch)
treeb82a1f8a1a2f7ee8c2f051913a77eeea592601bd /meta/lib/oeqa
parentf23c0f6a5aa93d38a5ea9d450f0accff0a5cc869 (diff)
downloadopenembedded-core-contrib-5c89060e96919c9865034a0c64fde382763da71d.tar.gz
runtime/cases/_ptest.py: add skip status
The packages' test cases maybe skipped, check and save them. [YOCTO #11547] Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r--meta/lib/oeqa/runtime/cases/_ptest.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/cases/_ptest.py b/meta/lib/oeqa/runtime/cases/_ptest.py
index 6d239494b8..ec8c038a56 100644
--- a/meta/lib/oeqa/runtime/cases/_ptest.py
+++ b/meta/lib/oeqa/runtime/cases/_ptest.py
@@ -10,6 +10,7 @@ class PtestRunnerTest(OERuntimeTestCase):
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()
@@ -38,6 +39,10 @@ class PtestRunnerTest(OERuntimeTestCase):
result.store(current_section, name, status)
continue
+ if line_type == 'test' and status == 'skip':
+ result.store(current_section, name, status)
+ continue
+
result.sort_tests()
return result
@@ -70,7 +75,7 @@ class PtestRunnerTest(OERuntimeTestCase):
# Parse and save results
parse_result = self.parse_ptest(ptest_runner_log)
- parse_result.log_as_files(ptest_log_dir, test_status = ['pass','fail'])
+ parse_result.log_as_files(ptest_log_dir, test_status = ['pass','fail', 'skip'])
if os.path.exists(ptest_log_dir_link):
# Remove the old link to create a new one
os.remove(ptest_log_dir_link)