aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmokrov <kmokrov@yandex-team.com>2023-04-10 17:41:14 +0300
committerkmokrov <kmokrov@yandex-team.com>2023-04-10 17:41:14 +0300
commite6f2c83e4e20c59aa56cce679e1ebd3ff097cb79 (patch)
tree91ae308b099e50ba340fc7a19ce482fafe41c3d8
parent4b2f3ef57362cbccf0e48cc75f78735f21f66db5 (diff)
downloadydb-e6f2c83e4e20c59aa56cce679e1ebd3ff097cb79.tar.gz
add CANONIZE_DIR_LOCALLY
Tests: проверял локально, собрал `ya-bin`, во время запуска подкладывал ему собранный `test_tool` с помощью флага `--test-tool-bin`
-rw-r--r--library/python/testing/yatest_common/yatest/common/canonical.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/python/testing/yatest_common/yatest/common/canonical.py b/library/python/testing/yatest_common/yatest/common/canonical.py
index e8bc893484..7819fa7e2a 100644
--- a/library/python/testing/yatest_common/yatest/common/canonical.py
+++ b/library/python/testing/yatest_common/yatest/common/canonical.py
@@ -54,7 +54,7 @@ def canonical_file(
@runtime.default_arg0
-def canonical_dir(path, diff_tool=None, diff_file_name=None, diff_tool_timeout=None):
+def canonical_dir(path, diff_tool=None, local=False, diff_file_name=None, diff_tool_timeout=None):
abs_path = os.path.abspath(path)
assert os.path.exists(abs_path), "Canonical path {} does not exist".format(path)
assert os.path.isdir(abs_path), "Path {} is not a directory".format(path)
@@ -64,7 +64,7 @@ def canonical_dir(path, diff_tool=None, diff_file_name=None, diff_tool_timeout=N
safe_path = os.path.join(tempdir, os.path.basename(abs_path))
shutil.copytree(abs_path, safe_path)
return runtime._get_ya_plugin_instance().file(
- safe_path, diff_tool=diff_tool, diff_file_name=diff_file_name, diff_tool_timeout=diff_tool_timeout
+ safe_path, diff_tool=diff_tool, local=local, diff_file_name=diff_file_name, diff_tool_timeout=diff_tool_timeout
)