summaryrefslogtreecommitdiff
path: root/zephyr/zmake
diff options
context:
space:
mode:
authorJeremy Bettis <jbettis@google.com>2021-06-03 14:45:13 -0600
committerCommit Bot <commit-bot@chromium.org>2021-06-04 17:20:19 +0000
commit556ca6009a141c23ab8f20d25202d9c13b60904e (patch)
tree9dd2c4f68e08bfb26bb209b2102d342cd2579c4c /zephyr/zmake
parent523f69ecba77b6b27667c8bc7828b5e28d253f0f (diff)
downloadchrome-ec-556ca6009a141c23ab8f20d25202d9c13b60904e.tar.gz
zmake: Change lcov excludes
Some of the drivers were being excluded from the coverage report because of symlinks in the build/zephyr/test directory, which matched */test/*. Changed to be */ec/test/* and */ec/zephyr/test/*. Also exclude the emulators, as they should not affect coverage numbers. BUG=b:183007888 TEST=sudo emerge zephyr-build-tools && \ zmake coverage build/zmake-coverage BRANCH=None Signed-off-by: Jeremy Bettis <jbettis@google.com> Change-Id: I95aa2655f0396672c25b7c317e1e08c403703510 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2937741 Tested-by: Jeremy Bettis <jbettis@chromium.org> Auto-Submit: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'zephyr/zmake')
-rw-r--r--zephyr/zmake/zmake/zmake.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/zephyr/zmake/zmake/zmake.py b/zephyr/zmake/zmake/zmake.py
index fc0cba79fe..17c460c6b5 100644
--- a/zephyr/zmake/zmake/zmake.py
+++ b/zephyr/zmake/zmake/zmake.py
@@ -501,9 +501,14 @@ class Zmake:
cmd = ['/usr/bin/lcov', '--gcov-tool',
self.module_paths['ec'] /
'util/llvm-gcov.sh', '-q', '-o', '-',
- '-c', '-d', build_dir, '-t', lcov_file.stem, '--exclude',
- '*/build-*/zephyr/*/generated/*', '--exclude', '*/test/*',
- '--exclude', '*/testsuite/*']
+ '-c', '-d', build_dir, '-t', lcov_file.stem,
+ '--exclude', '*/build-*/zephyr/*/generated/*',
+ '--exclude', '*/ec/test/*',
+ '--exclude', '*/ec/zephyr/emul/*',
+ '--exclude', '*/ec/zephyr/test/*',
+ '--exclude', '*/testsuite/*',
+ '--exclude', '*/subsys/emul/*',
+ ]
if initial:
cmd += ['-i']
proc = self.jobserver.popen(cmd,