]> 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)
committerSteve Sakoman <steve@sakoman.com>
Mon, 29 Jun 2020 15:17:44 +0000 (05:17 -1000)
commit20e7b1eeeb12f1cf4bd9934e0a5733c6bbe64372
tree003b88b68a90abdd27bc8f68e9e5f7ed9b91e4cf
parent819f41906197bb712af37349c0865002bfbd7c9b
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>
(cherry picked from commit 1b376ade430d40d3cfe9c18f200c764d622710e5)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oeqa/core/utils/concurrencytest.py
meta/lib/oeqa/selftest/context.py