diff options
author | Ross Burton <ross.burton@intel.com> | 2015-10-16 11:44:49 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-21 22:55:03 +0100 |
commit | 573bd03a7844a5ad762533f65f41214df31cd197 (patch) | |
tree | 1124862c6e8483fde10e3ed2a551c505c4decd74 /meta | |
parent | 2285ff17a391fa22f2095da701bc6f2c9615ae7b (diff) | |
download | openembedded-core-573bd03a7844a5ad762533f65f41214df31cd197.tar.gz openembedded-core-573bd03a7844a5ad762533f65f41214df31cd197.tar.bz2 openembedded-core-573bd03a7844a5ad762533f65f41214df31cd197.zip |
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.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/selftest/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/base.py b/meta/lib/oeqa/selftest/base.py index b2faa661e5..9bddc23f87 100644 --- a/meta/lib/oeqa/selftest/base.py +++ b/meta/lib/oeqa/selftest/base.py @@ -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): |