[oe-commits] [openembedded-core] 10/11: oe-selftest: check for coverage version before starting tests

git at git.openembedded.org git at git.openembedded.org
Wed Sep 14 21:42:50 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 90dd0f3aac82f449072eaf54d4535d275621f096
Author: Humberto Ibarra <humberto.ibarra.lopez at intel.com>
AuthorDate: Mon Sep 12 15:30:50 2016 -0500

    oe-selftest: check for coverage version before starting tests
    
    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>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list