unit tests: Skip coverage properly with clang

pull/2703/head
Nirbheek Chauhan 7 years ago
parent 3851867a06
commit bccb7a8eb8
  1. 5
      run_unittests.py

@ -2249,8 +2249,9 @@ class LinuxlikeTests(BasePlatformTests):
raise unittest.SkipTest('gcovr not found')
if not shutil.which('genhtml'):
raise unittest.SkipTest('genhtml not found')
if 'clang' in os.environ.get('CC', '') and os.environ.get('TRAVIS_OS_NAME', '') == 'linux':
raise unittest.SkipTest('Gcovr has a bug and does not work with Clang in the CI environment.')
if 'clang' in os.environ.get('CC', ''):
# We need to use llvm-cov instead of gcovr with clang
raise unittest.SkipTest('Coverage does not work with clang right now, help wanted!')
testdir = os.path.join(self.common_test_dir, '1 trivial')
self.init(testdir, ['-Db_coverage=true'])
self.build()

Loading…
Cancel
Save