aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins
diff options
context:
space:
mode:
authordaniel-march <daniel-march@yandex-team.com>2023-10-12 19:24:17 +0300
committerdaniel-march <daniel-march@yandex-team.com>2023-10-12 19:46:16 +0300
commita133fc1e8d404578f74f39162e63f4a5fd8d4c5a (patch)
tree9454ac2c77e6cf4860c697036ba490a64963037c /build/plugins
parent8826ac90645f5ed29970591c779c0d62d27433a7 (diff)
downloadydb-a133fc1e8d404578f74f39162e63f4a5fd8d4c5a.tar.gz
Added "USE_KTLINT_OLD" macro support
Diffstat (limited to 'build/plugins')
-rw-r--r--build/plugins/ytest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/plugins/ytest.py b/build/plugins/ytest.py
index 664539e9d69..2aed37e2057 100644
--- a/build/plugins/ytest.py
+++ b/build/plugins/ytest.py
@@ -641,6 +641,8 @@ def onadd_check(unit, *args):
fork_mode = unit.get('TEST_FORK_MODE') or ''
elif check_type == "ktlint":
test_timeout = '120'
+ ktlint_binary = '$(KTLINT_OLD)/run.bat' if unit.get('_USE_KTLINT_OLD') == 'yes' else '$(KTLINT)/run.bat'
+ extra_test_dart_data['KTLINT_BINARY'] = ktlint_binary
elif check_type == "JAVA_STYLE":
if ymake_java_test and not unit.get('ALL_SRCDIRS') or '':
return