[oe-commits] Paul Eggleton : oeqa/selftest: fix test_force_task so it doesn' t taint the entire build

git at git.openembedded.org git at git.openembedded.org
Thu Dec 25 08:28:56 UTC 2014


Module: openembedded-core.git
Branch: master
Commit: 24b41a1e3f2496e38a6ae9c47dfe85887f3d7d6e
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=24b41a1e3f2496e38a6ae9c47dfe85887f3d7d6e

Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date:   Tue Dec 23 16:01:55 2014 +0000

oeqa/selftest: fix test_force_task so it doesn't taint the entire build

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 at linux.intel.com>

---

 meta/lib/oeqa/selftest/bbtests.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/lib/oeqa/selftest/bbtests.py b/meta/lib/oeqa/selftest/bbtests.py
index 2a85f10..5708d3d 100644
--- a/meta/lib/oeqa/selftest/bbtests.py
+++ b/meta/lib/oeqa/selftest/bbtests.py
@@ -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:



More information about the Openembedded-commits mailing list