oeqa/selftest: clean up selftest.inc in teardown
Test cases may want to do call bitbake in setUpClass() but at that point the previous selftest.inc is still present which could change the build configuration and result in any built artifacts being removed in the next bitbake invocation as part of the sysroot clean up. Resolve this by cleaning selftest.inc in the tearDown, the clean in setUp should be considered a safety net. (From OE-Core rev: 573bd03a7844a5ad762533f65f41214df31cd197) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
a66ed339d9
commit
2ac34d2a19
|
@ -31,7 +31,7 @@ class oeSelfTest(unittest.TestCase):
|
|||
self.testinc_bblayers_path = os.path.join(self.builddir, "conf/bblayers.inc")
|
||||
self.testlayer_path = oeSelfTest.testlayer_path
|
||||
self._extra_tear_down_commands = []
|
||||
self._track_for_cleanup = []
|
||||
self._track_for_cleanup = [self.testinc_path]
|
||||
super(oeSelfTest, self).__init__(methodName)
|
||||
|
||||
def setUp(self):
|
||||
|
|
Loading…
Reference in New Issue