]> code.ossystems Code Review - openembedded-core.git/commit
concurrencytest.py: add outSideTestaddSkip for subunit
authorTrevor Gamblin <trevor.gamblin@windriver.com>
Tue, 18 Feb 2020 14:56:18 +0000 (09:56 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 18 Feb 2020 23:52:42 +0000 (23:52 +0000)
commit9b8734b584d6e8d9c32ff2a721b29f3f3e61cca7
tree12d1aec66e581ae5a31f62862bdb1bdb21eeea9c
parent81010555a29fe4ddae9a9c3abe35fcbddd8887b2
concurrencytest.py: add outSideTestaddSkip for subunit

see: https://bugzilla.yoctoproject.org/show_bug.cgi?id=13663

When running oe-selftest in concurrency mode (e.g. with oe-selftest
--run-tests oescripts.OEPybootchartguyTests -j 4), if a skip occurred
during setUpClass() rather than within individual tests, the entire
suite would show "UNKNOWN" as each test's result. This is because
subunit doesn't know how to handle skips outside of individual tests.
An example of where this occurs is when running the above call to
oe-selftest in concurrency mode on a host machine that does not have
python3-cairo installed.

Patch subunit inside concurrencytest.py to provide a method called
outSideTestaddSkip, which will allow subunit to correctly detect the
skip in setUpClass().

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/core/utils/concurrencytest.py