From: Leonardo Sandoval <[email protected]>

There is no need to remove the whole TMPDIR, instead just invalidate
stamps and build again the targets. Local runs demostrate the patch reduces
the execution time considerably (see below), indicating the extra work done
by rmtree. In the other hand, the following checks after archiver were affected
because they started from a clean TMPDIR.

Before:
2017-01-31 17:39:39 -   test_archiver_allows_to_filter_on_recipe_name 
(oeqa.selftest.archiver.Archiver) ... OK (468.928s)

After:
2017-01-31 18:00:08 -   test_archiver_allows_to_filter_on_recipe_name 
(oeqa.selftest.archiver.Archiver) ... OK (297.524s)

Signed-off-by: Leonardo Sandoval <[email protected]>
---
 meta/lib/oeqa/selftest/archiver.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/lib/oeqa/selftest/archiver.py 
b/meta/lib/oeqa/selftest/archiver.py
index 97b6f5b..c8c4533 100644
--- a/meta/lib/oeqa/selftest/archiver.py
+++ b/meta/lib/oeqa/selftest/archiver.py
@@ -28,8 +28,8 @@ class Archiver(oeSelfTest):
         features += 'COPYLEFT_PN_EXCLUDE = "%s"\n' % exclude_recipe
         self.write_config(features)
 
-        shutil.rmtree(get_bb_var('TMPDIR'))
-        bitbake("%s %s" % (include_recipe, exclude_recipe))
+        bitbake("-C fetch %s" % include_recipe)
+        bitbake("-C fetch %s" % exclude_recipe)
 
         src_path = os.path.join(get_bb_var('DEPLOY_DIR_SRC'), 
get_bb_var('TARGET_SYS'))
 
-- 
2.1.4

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to