[OE-core] [PATCH 10/11] oe-selftest: Error if the user has buildhistory enabled

Richard Purdie richard.purdie at linuxfoundation.org
Thu Jan 19 16:13:01 UTC 2017


buildhistory interfers with various tests so error if the user has it enabled,
hence avoiding time spent running the tests only for them to fail.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/oe-selftest | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/oe-selftest b/scripts/oe-selftest
index 120a6c2..124a8dd 100755
--- a/scripts/oe-selftest
+++ b/scripts/oe-selftest
@@ -134,6 +134,10 @@ def preflight_check():
         log.error("You don't seem to have the meta-selftest layer in BBLAYERS")
         return False
 
+    if "buildhistory.bbclass" in get_bb_var("BBINCLUDED"):
+        log.error("You have buildhistory enabled already and this isn't recommended for selftest, please disable it first.")
+        return False
+
     log.info("Running bitbake -p")
     runCmd("bitbake -p")
 
-- 
2.7.4




More information about the Openembedded-core mailing list