[OE-core] [PATCH] oe-selftest: check for coverage version before starting tests
Humberto Ibarra
humberto.ibarra.lopez at intel.com
Mon Sep 12 20:30:50 UTC 2016
python coverage versions lower than 4.x have problems with some distros. Adding the 4.x version as requirement to continue with coverage tracking.
[YOCTO #10207]
Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez at intel.com>
---
scripts/oe-selftest | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/scripts/oe-selftest b/scripts/oe-selftest
index 72bf4dd..d9ffd40 100755
--- a/scripts/oe-selftest
+++ b/scripts/oe-selftest
@@ -605,6 +605,10 @@ def buildResultClass(args):
if self.coverage_installed:
log.info("Coverage is enabled")
+ major_version = int(coverage.version.__version__[0])
+ if major_version < 4:
+ log.error("python coverage %s installed. Require version 4 or greater." % coverage.version.__version__)
+ self.stop()
# In case the user has not set the variable COVERAGE_PROCESS_START,
# create a default one and export it. The COVERAGE_PROCESS_START
# value indicates where the coverage configuration file resides
--
2.4.11
More information about the Openembedded-core
mailing list