diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-12 13:30:53 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-19 22:45:54 +0000 |
commit | 941ec7c50c30052e346e72fef2920135dba89a21 (patch) | |
tree | 905535811443f37ba1cf5961c6b212bd48a6b0fb /scripts | |
parent | 4fd9e74035703b45a9e6e9143b1ec421e172200c (diff) | |
download | openembedded-core-941ec7c50c30052e346e72fef2920135dba89a21.tar.gz openembedded-core-941ec7c50c30052e346e72fef2920135dba89a21.tar.bz2 openembedded-core-941ec7c50c30052e346e72fef2920135dba89a21.zip |
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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/oe-selftest | 4 |
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(): 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") |