]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/selftest: clean up selftest.inc in teardown
authorRoss Burton <ross.burton@intel.com>
Fri, 16 Oct 2015 10:44:49 +0000 (11:44 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 21 Oct 2015 21:55:03 +0000 (22:55 +0100)
commit573bd03a7844a5ad762533f65f41214df31cd197
tree1124862c6e8483fde10e3ed2a551c505c4decd74
parent2285ff17a391fa22f2095da701bc6f2c9615ae7b
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>
meta/lib/oeqa/selftest/base.py