]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe-selftest: Error if the user has buildhistory enabled
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 12 Jan 2017 13:30:53 +0000 (13:30 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Jan 2017 22:45:54 +0000 (22:45 +0000)
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.

For example, if there is an sstate cache and something comes from that cache,
you can get a "version went backwards" warning from buildhistory which would
then change the outcome of a test. Its safer/easier to disable it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/oe-selftest

index fb33c085126a03ebc091527b84676bf80def9a56..0baf572c103e5dffefb1b9ef62e6c26b04eb23d0 100755 (executable)
@@ -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")