[OE-core] [PATCH] context: allow test execution with buildhistory unless version-going-backwards is present
leonardo.sandoval.gonzalez at linux.intel.com
leonardo.sandoval.gonzalez at linux.intel.com
Thu Jun 8 20:40:22 UTC 2017
From: Leonardo Sandoval <leonardo.sandoval.gonzalez at linux.intel.com>
Users constantly running oe-selftest find annoying to disable buildhistory before running
'oe-selftest' then enabling after it. To lessen the buildhistory restriction, allow buildhistory
unless 'version-going-backwards' is present on ERROR_QA bitbake variable.
[YOCTO #11580]
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez at linux.intel.com>
---
meta/lib/oeqa/selftest/context.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/lib/oeqa/selftest/context.py b/meta/lib/oeqa/selftest/context.py
index ca73070c0b..f061b987b0 100644
--- a/meta/lib/oeqa/selftest/context.py
+++ b/meta/lib/oeqa/selftest/context.py
@@ -150,7 +150,8 @@ class OESelftestTestContextExecutor(OETestContextExecutor):
_check_required_env_variables(["BUILDDIR"])
_check_presence_meta_selftest()
- if "buildhistory.bbclass" in self.tc.td["BBINCLUDED"]:
+ # buildhistory introduce QA 'version-going-backwards' errors so stop if the latter are enabled
+ if "buildhistory.bbclass" in self.tc.td["BBINCLUDED"] and 'version-going-backwards' in self.tc.td['ERROR_QA']:
self.tc.logger.error("You have buildhistory enabled already and this isn't recommended for selftest, please disable it first.")
raise OEQAPreRun
--
2.12.0
More information about the Openembedded-core
mailing list