summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-12 13:30:53 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-20 11:53:49 +0000
commit41fb482ee132289e8663c76b813a6e3c86e201b3 (patch)
tree63bf04c256f53b00b87f9c6cd7619f4e53b66fc1 /scripts
parentd80c95d53f9116e60497385389e84ea0ee1bb44e (diff)
downloadpoky-41fb482ee132289e8663c76b813a6e3c86e201b3.tar.gz
oe-selftest: Error if the user has buildhistory enabled
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. (From OE-Core rev: 941ec7c50c30052e346e72fef2920135dba89a21) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/oe-selftest4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/oe-selftest b/scripts/oe-selftest
index fb33c08512..0baf572c10 100755
--- a/scripts/oe-selftest
+++ b/scripts/oe-selftest
@@ -134,6 +134,10 @@ def preflight_check():
134 log.error("You don't seem to have the meta-selftest layer in BBLAYERS") 134 log.error("You don't seem to have the meta-selftest layer in BBLAYERS")
135 return False 135 return False
136 136
137 if "buildhistory.bbclass" in get_bb_var("BBINCLUDED"):
138 log.error("You have buildhistory enabled already and this isn't recommended for selftest, please disable it first.")
139 return False
140
137 log.info("Running bitbake -p") 141 log.info("Running bitbake -p")
138 runCmd("bitbake -p") 142 runCmd("bitbake -p")
139 143