diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-05-08 16:20:19 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-05-09 16:31:55 +0100 |
commit | 970b53370d4d5505aa149a1b0fc66acf994f3211 (patch) | |
tree | 3f05a47109c6e03642fe95fecc2ed26c57ca062f /meta/lib/oeqa | |
parent | ffae400179fd0b64f8882cf79d78e1c0f2d74bee (diff) | |
download | poky-970b53370d4d5505aa149a1b0fc66acf994f3211.tar.gz |
oeqa/core/runner: Handle unexpectedSucesses
Instead of showing:
RESULTS - ptest.PtestRunnerTest.test_ptestrunner - Testcase 1600: UNKNOWN (32.30s)
map unexpectedSuccesses to PASSED and improve the way they're displayed. We
expect/allow ptest runner to fail but if it passes we should handle it correctly.
(From OE-Core rev: 7885939ca3dea9704185e93469fe515c17eb8017)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/core/runner.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/meta/lib/oeqa/core/runner.py b/meta/lib/oeqa/core/runner.py index 5f708730ed..ca61de8cc0 100644 --- a/meta/lib/oeqa/core/runner.py +++ b/meta/lib/oeqa/core/runner.py | |||
@@ -91,11 +91,17 @@ class OETestResult(_TestResult): | |||
91 | 91 | ||
92 | def _getTestResultDetails(self, case): | 92 | def _getTestResultDetails(self, case): |
93 | result_types = {'failures': 'FAILED', 'errors': 'ERROR', 'skipped': 'SKIPPED', | 93 | result_types = {'failures': 'FAILED', 'errors': 'ERROR', 'skipped': 'SKIPPED', |
94 | 'expectedFailures': 'EXPECTEDFAIL', 'successes': 'PASSED'} | 94 | 'expectedFailures': 'EXPECTEDFAIL', 'successes': 'PASSED', |
95 | 'unexpectedSuccesses' : 'PASSED'} | ||
95 | 96 | ||
96 | for rtype in result_types: | 97 | for rtype in result_types: |
97 | found = False | 98 | found = False |
98 | for (scase, msg) in getattr(self, rtype): | 99 | for resultclass in getattr(self, rtype): |
100 | # unexpectedSuccesses are just lists, not lists of tuples | ||
101 | if isinstance(resultclass, tuple): | ||
102 | scase, msg = resultclass | ||
103 | else: | ||
104 | scase, msg = resultclass, None | ||
99 | if case.id() == scase.id(): | 105 | if case.id() == scase.id(): |
100 | found = True | 106 | found = True |
101 | break | 107 | break |