]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 May 2019 15:32:16 +0000 (16:32 +0100)
commit8f7352ed9c1a3e82689b842b7f87e469ebf2e48f
treec3062b6d0d2dd0eb409bf568a13d8905c7964424
parent425fbba9348420df72de5c6292f50acaf2023d0b
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>
meta/lib/oeqa/core/utils/concurrencytest.py