]> 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, 1 Jun 2019 21:48:32 +0000 (14:48 -0700)
commit741cf82d0e7f9e797ba35157a1466fadbf74dc64
tree00ee8c43e1ca63c19349a1c43baa1363aa1c240d
parent3c645ecdb884ecafa7c492bdd8a952cce96d3906
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