[oe-commits] [openembedded-core] 09/26: oe-selftest: Error if known problem variables are set
git at git.openembedded.org
git at git.openembedded.org
Wed Apr 12 23:01:25 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 0c9b981e88c76da316e76f17e6da3a03b87c5008
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Apr 12 19:54:20 2017 +0100
oe-selftest: Error if known problem variables are set
Setting SANITY_TESTED_DISTROS or PRSERV_HOST are known to break oe-selftest.
Rather than have the user experience this, refuse to execute unless the
environment is correct.
Ideally we'd try and unset these but that is a more invasive change and this
at least makes people aware of the problem.
[YOCTO #11292]
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
scripts/oe-selftest | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/scripts/oe-selftest b/scripts/oe-selftest
index 58d3b1e..52366b1 100755
--- a/scripts/oe-selftest
+++ b/scripts/oe-selftest
@@ -146,6 +146,14 @@ def preflight_check():
log.error("You have buildhistory enabled already and this isn't recommended for selftest, please disable it first.")
return False
+ if get_bb_var("PRSERV_HOST"):
+ log.error("Please unset PRSERV_HOST in order to run oe-selftest")
+ return False
+
+ if get_bb_var("SANITY_TESTED_DISTROS"):
+ log.error("Please unset SANITY_TESTED_DISTROS in order to run oe-selftest")
+ return False
+
log.info("Running bitbake -p")
runCmd("bitbake -p")
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list