diff options
| author | kuzmich321 <[email protected]> | 2025-10-24 20:40:26 +0300 |
|---|---|---|
| committer | kuzmich321 <[email protected]> | 2025-10-24 21:27:43 +0300 |
| commit | a1c475db0cc0bf96fe296031ce9c2b3085424dc7 (patch) | |
| tree | 0aedb2405f1f28af2b83be3950faf4be5302acc5 /build/plugins/coverage.py | |
| parent | a687df2b7532801ec1121a457abd017245884809 (diff) | |
allow contrib/ydb to be covered in arcadia
commit_hash:8f33d0368dc59cf8c92183755875c9232f2bb551
Diffstat (limited to 'build/plugins/coverage.py')
| -rw-r--r-- | build/plugins/coverage.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/build/plugins/coverage.py b/build/plugins/coverage.py index 2ee4066492a..9c0a7692e5b 100644 --- a/build/plugins/coverage.py +++ b/build/plugins/coverage.py @@ -30,8 +30,12 @@ def get_coverage_filters(unit, filters=[]): cov_exclude_re = get_coverage_filter_regexp(coverage_exclude_regexp) filters.append(lambda x: re.match(cov_exclude_re, x) is not None) if unit.get("ENABLE_CONTRIB_COVERAGE") != "yes": - paths_to_exclude = ("contrib",) - filters.append(lambda x: x.startswith(paths_to_exclude)) + if unit.get("ENABLE_CONTRIB_YDB_COVERAGE") == "yes": + pattern = r'^contrib/(?!ydb)' + filters.append(lambda x: re.match(pattern, x) is not None) + else: + paths_to_exclude = ("contrib",) + filters.append(lambda x: x.startswith(paths_to_exclude)) return filters |
