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