From: Nathan Rossi Date: Wed, 28 Aug 2019 05:06:29 +0000 (+0000) Subject: scripts/lib/resulttool/report.py: Add more result types X-Git-Tag: uninative-2.7~362 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=684fc36402a23760b203f4761f284043031c799c;p=openembedded-core.git scripts/lib/resulttool/report.py: Add more result types Add additional result types into the dictionary to handle dejagnu style test results. These include PASS, FAIL, XPASS, XFAIL, UNSUPPORTED, UNTESTED, UNRESOLVED and ERROR. Signed-off-by: Nathan Rossi Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/resulttool/report.py b/scripts/lib/resulttool/report.py index f706280aa7..8b03717d29 100644 --- a/scripts/lib/resulttool/report.py +++ b/scripts/lib/resulttool/report.py @@ -19,9 +19,9 @@ class ResultsTextReport(object): self.ptests = {} self.ltptests = {} self.ltpposixtests = {} - self.result_types = {'passed': ['PASSED', 'passed'], - 'failed': ['FAILED', 'failed', 'ERROR', 'error', 'UNKNOWN'], - 'skipped': ['SKIPPED', 'skipped']} + self.result_types = {'passed': ['PASSED', 'passed', 'PASS', 'XFAIL'], + 'failed': ['FAILED', 'failed', 'FAIL', 'ERROR', 'error', 'UNKNOWN', 'XPASS'], + 'skipped': ['SKIPPED', 'skipped', 'UNSUPPORTED', 'UNTESTED', 'UNRESOLVED']} def handle_ptest_result(self, k, status, result, machine):