aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/ytest.py
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-06-20 10:36:01 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-06-20 10:36:01 +0300
commitd4cd578c583e5200199a48ead27dcf07b7c9b4fe (patch)
treeed8786b4650fb217ad49f8c43a3ba479f6d033d2 /build/plugins/ytest.py
parentf403b8fac5305b025fbbed70b9396e28ac62df50 (diff)
downloadydb-d4cd578c583e5200199a48ead27dcf07b7c9b4fe.tar.gz
intermediate changes
ref:6ada9bb2ca40267e194cf8bf81a2fbcd021b999d
Diffstat (limited to 'build/plugins/ytest.py')
-rw-r--r--build/plugins/ytest.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/build/plugins/ytest.py b/build/plugins/ytest.py
index bf68d67045..db775d8e5c 100644
--- a/build/plugins/ytest.py
+++ b/build/plugins/ytest.py
@@ -402,11 +402,16 @@ def get_default_tidy_config(unit):
return DEFAULT_TIDY_CONFIG
+oredered_tidy_map = None
+
+
def get_project_tidy_config(unit):
- tidy_map = get_tidy_config_map(unit, PROJECT_TIDY_CONFIG_MAP_PATH)
+ global oredered_tidy_map
+ if oredered_tidy_map is None:
+ oredered_tidy_map = reversed(sorted(get_tidy_config_map(unit, PROJECT_TIDY_CONFIG_MAP_PATH).items()))
unit_path = get_norm_unit_path(unit)
- for project_prefix, config_path in tidy_map.items():
+ for project_prefix, config_path in oredered_tidy_map:
if unit_path.startswith(project_prefix):
return config_path
else: