]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/concurrenttest: Patch subunit module to handle classSetup failures
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 May 2019 13:35:03 +0000 (14:35 +0100)
committerArmin Kuster <akuster808@gmail.com>
Sat, 18 May 2019 04:30:39 +0000 (21:30 -0700)
commit6f58c301e2d3463848df35c5b5c55d167ab34035
treea22cf292a83721d8f92754b75e4036cb43240e3a
parentf1009d6d44097a3f140e2f8679e9184031b10b44
oeqa/concurrenttest: Patch subunit module to handle classSetup failures

Currently setupClass errors were not being mapped back to the failing tests
and they were hence being marked as UNKNOWN and the test statistics were
inaccurate.

This is because whilst the errors were being encoded into the test results
stream, the decoder doesn't cope with an error outside a testStart event.

We patch in an addError handler to the outsideTest parser so that this
does get handled in a way similar to the non-concurrent case.

It would be nice if we didn't have to do this but there doesn't seem
to be any other way to fix this other than forking subunit.

We also make a minor change so another of our changes can cope with
tests without a start time.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/lib/oeqa/core/utils/concurrencytest.py