diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2018-03-16 00:20:22 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2018-03-19 21:52:34 +0100 |
| commit | b2ffb6b56560d212e58192b85b0a8e9232a66dd4 (patch) | |
| tree | 416b66d9eceee7841bff42ce8728763da2ec4b2d | |
| parent | 8bad2d98277854ff58ef84c27b89604b544c279f (diff) | |
| download | meson-b2ffb6b56560d212e58192b85b0a8e9232a66dd4.tar.gz | |
Generate coveragereport directory for gcovr html target
| -rw-r--r-- | mesonbuild/scripts/coverage.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/scripts/coverage.py b/mesonbuild/scripts/coverage.py index eaa86fe86..916c84f4d 100644 --- a/mesonbuild/scripts/coverage.py +++ b/mesonbuild/scripts/coverage.py @@ -99,6 +99,8 @@ def coverage(outputs, source_root, subproject_root, build_root, log_dir): outfiles.append(('Html', pathlib.Path(htmloutdir, 'index.html'))) elif gcovr_exe and gcovr_new_rootdir: htmloutdir = os.path.join(log_dir, 'coveragereport') + if not os.path.isdir(htmloutdir): + os.mkdir(htmloutdir) subprocess.check_call([gcovr_exe, '--html', '--html-details', |
