summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/oe-selftest4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/oe-selftest b/scripts/oe-selftest
index 72bf4dda6a..d9ffd40e8c 100755
--- a/scripts/oe-selftest
+++ b/scripts/oe-selftest
@@ -605,6 +605,10 @@ def buildResultClass(args):
605 if self.coverage_installed: 605 if self.coverage_installed:
606 log.info("Coverage is enabled") 606 log.info("Coverage is enabled")
607 607
608 major_version = int(coverage.version.__version__[0])
609 if major_version < 4:
610 log.error("python coverage %s installed. Require version 4 or greater." % coverage.version.__version__)
611 self.stop()
608 # In case the user has not set the variable COVERAGE_PROCESS_START, 612 # In case the user has not set the variable COVERAGE_PROCESS_START,
609 # create a default one and export it. The COVERAGE_PROCESS_START 613 # create a default one and export it. The COVERAGE_PROCESS_START
610 # value indicates where the coverage configuration file resides 614 # value indicates where the coverage configuration file resides