Skip to contentSkip to conversation

selftest/archiver: invalidate stamps instead of removing TMPDIR

PATCH New [email protected] 1 participant 1 message Feb 2, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 selftest/archiver: invalidate stamps instead of removing TMPDIR

From: Leonardo Sandoval <[email protected]>

There is no need to remove the whole TMPDIR, instead just invalidate stamps and build again the targets.

---
 meta/lib/oeqa/selftest/archiver.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
meta/lib/oeqa/selftest/archiver.py +7 -2
index 97b6f5b..0af9634 100644
@@ -28,8 +28,13 @@ 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))
+        # build again include/exclude recipes
+        bitbake("-C fetch %s" % include_recipe)
+        bitbake("-C fetch %s" % exclude_recipe)
+
+        # clean output files and stamps
+        bitbake("-c clean %s" % include_recipe)
+        bitbake("-c clean %s" % exclude_recipe)
 
         src_path = os.path.join(get_bb_var('DEPLOY_DIR_SRC'), get_bb_var('TARGET_SYS'))
 
Signature · 1 line
2.1.4