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 /mesonbuild/scripts/coverage.py | |
parent | 8bad2d98277854ff58ef84c27b89604b544c279f (diff) | |
download | meson-b2ffb6b56560d212e58192b85b0a8e9232a66dd4.zip meson-b2ffb6b56560d212e58192b85b0a8e9232a66dd4.tar.gz meson-b2ffb6b56560d212e58192b85b0a8e9232a66dd4.tar.bz2 |
Generate coveragereport directory for gcovr html target
Diffstat (limited to 'mesonbuild/scripts/coverage.py')
-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 eaa86fe..916c84f 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', |