]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/selftest: fix test_force_task so it doesn't taint the entire build
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 23 Dec 2014 16:01:55 +0000 (16:01 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 Dec 2014 08:26:01 +0000 (08:26 +0000)
Using -C sets a taint on the specified task, and m4-native is in the
dependency chain for just about everything, which means that everything
gets forced to rebuild. We don't need the influence of this test to
extend outside of the test itself, so ensure that the taint gets cleared
at the end of the test.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
meta/lib/oeqa/selftest/bbtests.py

index 2a85f10821ba1e0c5d4afe12a283d284f705e4c7..5708d3dc9b6b58c36d26664b314dd8fc14c512a6 100644 (file)
@@ -71,6 +71,7 @@ class BitbakeTests(oeSelfTest):
     @testcase(163)
     def test_force_task(self):
         bitbake('m4-native')
+        self.add_command_to_tearDown('bitbake -c clean m4-native')
         result = bitbake('-C compile m4-native')
         look_for_tasks = ['do_compile', 'do_install', 'do_populate_sysroot']
         for task in look_for_tasks: