From b2ffb6b56560d212e58192b85b0a8e9232a66dd4 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Fri, 16 Mar 2018 00:20:22 +0100 Subject: [PATCH] Generate coveragereport directory for gcovr html target --- mesonbuild/scripts/coverage.py | 2 ++ 1 file changed, 2 insertions(+) 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',