From 35035dabcbaba7102253e29c4a7feccfbcb08d58 Mon Sep 17 00:00:00 2001 From: matejcik Date: Fri, 18 Sep 2020 14:23:20 +0200 Subject: [PATCH] ci: omit generated protobuf classes from coverage report --- core/tools/coverage-report | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/tools/coverage-report b/core/tools/coverage-report index 4cccb357a8..6bc17e3456 100755 --- a/core/tools/coverage-report +++ b/core/tools/coverage-report @@ -6,7 +6,10 @@ coverage run --source=./src /dev/null 2>/dev/null mv .coverage .coverage.empty coverage combine .coverage.* -coverage html --fail-under=${COVERAGE_THRESHOLD} +coverage html \ + --omit=src/trezor/messages/* \ + --fail-under=${COVERAGE_THRESHOLD} + if [ $? -eq 2 ]; then echo "Code coverage is less than ${COVERAGE_THRESHOLD}%" exit 1