]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/selftest: Clean up separate builddir in success case when non-threaded
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 27 Jun 2020 12:42:00 +0000 (13:42 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 28 Jun 2020 07:24:20 +0000 (08:24 +0100)
commit1b376ade430d40d3cfe9c18f200c764d622710e5
tree0d5631929f7d7cba47a101a5017f30ebf83c07a0
parent58ebb47688fc98fdaeb78b4033bd31100218d5d6
oeqa/selftest: Clean up separate builddir in success case when non-threaded

If oe-selftest is run without -j, the separate build directory "build-st"
isn't cleaned up afterwards. Mirror the behaviour of the -j option to
handle this the same way, only preserve upon failure.

To do this, the remove function needs to be moved to the selftest
context module so that it can be accessed without requiring the
testtools and subunit modules the -j option requires.

A dummy wrapper class is used to wrap the tests and clean up afterwards.

[YOCTO #13953]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/core/utils/concurrencytest.py
meta/lib/oeqa/selftest/context.py