diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2025-05-28 08:14:06 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2025-05-28 08:27:58 +0300 |
commit | 231db622657fea606d00ed68c8e7afc72d1c7f42 (patch) | |
tree | 5332147a56b0215f9ee686c3d9628ed69f5e05be | |
parent | a46c5cfa0de8cdd7c4c4cc1e9736d6a12d590f27 (diff) | |
download | ydb-231db622657fea606d00ed68c8e7afc72d1c7f42.tar.gz |
Intermediate changes
commit_hash:afd8a68e9b5e0c32f28c75903192c6dee06196d2
-rw-r--r-- | tools/cpp_style_checker/__main__.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/cpp_style_checker/__main__.py b/tools/cpp_style_checker/__main__.py index 4ca1bc3a0f9..a3d303e8584 100644 --- a/tools/cpp_style_checker/__main__.py +++ b/tools/cpp_style_checker/__main__.py @@ -65,8 +65,13 @@ def check_file(clang_format_binary, style_config_json, filename): if styled_source == actual_source: return reporter.LintStatus.GOOD, "" else: - diff = make_diff(actual_source, styled_source) - return reporter.LintStatus.FAIL, diff + # FIXME(YA-2574) remove retry + styled_source = subprocess.check_output(command, input=actual_source) + if styled_source == actual_source: + return reporter.LintStatus.GOOD, "" + else: + diff = make_diff(actual_source, styled_source) + return reporter.LintStatus.FAIL, diff def make_diff(left, right): |