aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/ytest.py
diff options
context:
space:
mode:
authoriaz1607 <iaz1607@yandex-team.com>2024-01-23 14:05:17 +0300
committerAlexander Smirnov <alex@ydb.tech>2024-01-24 15:02:07 +0300
commitb3a8706c73ceefb42c529668e9916b34d30ae8b8 (patch)
tree01c4b047b914f5588ac61e622ff60f3cd6d355e4 /build/plugins/ytest.py
parent298883b7488a868fd7bc5462f4b50740687ce249 (diff)
downloadydb-b3a8706c73ceefb42c529668e9916b34d30ae8b8.tar.gz
Stop using svn in canonization tests
Diffstat (limited to 'build/plugins/ytest.py')
-rw-r--r--build/plugins/ytest.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/build/plugins/ytest.py b/build/plugins/ytest.py
index 182e4b25e4..a98fb4cb21 100644
--- a/build/plugins/ytest.py
+++ b/build/plugins/ytest.py
@@ -1187,14 +1187,16 @@ def onsetup_run_python(unit):
def get_canonical_test_resources(unit):
unit_path = unit.path()
- canon_data_dir = os.path.join(unit.resolve(unit_path), CANON_DATA_DIR_NAME, unit.get('CANONIZE_SUB_PATH') or '')
-
+ if unit.get("CUSTOM_CANONDATA_PATH"):
+ path_to_canondata = unit_path.replace("$S", unit.get("CUSTOM_CANONDATA_PATH"))
+ else:
+ path_to_canondata = unit.resolve(unit_path)
+ canon_data_dir = os.path.join(path_to_canondata, CANON_DATA_DIR_NAME, unit.get('CANONIZE_SUB_PATH') or '')
try:
_, dirs, files = next(os.walk(canon_data_dir))
except StopIteration:
# path doesn't exist
return [], []
-
if CANON_RESULT_FILE_NAME in files:
return _get_canonical_data_resources_v2(os.path.join(canon_data_dir, CANON_RESULT_FILE_NAME), unit_path)
return [], []