diff options
| author | Humberto Ibarra <humberto.ibarra.lopez@intel.com> | 2016-09-12 15:30:50 -0500 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-15 12:15:07 +0100 |
| commit | b28e6d6039902f79e46a764035b09c642cb31143 (patch) | |
| tree | 343abb60887518abfada806745a55960ac8cc30a /scripts/oe-selftest | |
| parent | 405262dbb1eec68a1f1f5e30d05f2c08efbd8b48 (diff) | |
| download | poky-b28e6d6039902f79e46a764035b09c642cb31143.tar.gz | |
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]
(From OE-Core rev: a378b817504986173c4b0984a28aead247589b3f)
Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-selftest')
| -rwxr-xr-x | scripts/oe-selftest | 4 |
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 |
