diff options
author | iaz1607 <iaz1607@yandex-team.ru> | 2022-06-17 12:30:11 +0300 |
---|---|---|
committer | iaz1607 <iaz1607@yandex-team.ru> | 2022-06-17 12:30:11 +0300 |
commit | 49b4f8931e17f7f8a491ebcfda9a4cf3b960159d (patch) | |
tree | 4ed57b7e27a95ed55a483dedcc0263187b305c77 /library/python | |
parent | aff27c0a999df6e6d4b9ade862a64d3813e9512f (diff) | |
download | ydb-49b4f8931e17f7f8a491ebcfda9a4cf3b960159d.tar.gz |
Strict go test
ref:6ef4c0e7601ad32073264a38b583a6d2d33bce94
Diffstat (limited to 'library/python')
-rw-r--r-- | library/python/testing/yatest_common/yatest/common/runtime.py | 6 | ||||
-rw-r--r-- | library/python/testing/yatest_lib/ya.py | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/library/python/testing/yatest_common/yatest/common/runtime.py b/library/python/testing/yatest_common/yatest/common/runtime.py index e55e193446..d5aba76315 100644 --- a/library/python/testing/yatest_common/yatest/common/runtime.py +++ b/library/python/testing/yatest_common/yatest/common/runtime.py @@ -131,6 +131,7 @@ def ram_drive_path(path=None): """ if 'YA_TEST_RAM_DRIVE_PATH' in os.environ: return _join_path(os.environ['YA_TEST_RAM_DRIVE_PATH'], path) + return get_param("ram_drive_path") def output_ram_drive_path(path=None): @@ -141,6 +142,7 @@ def output_ram_drive_path(path=None): """ if 'YA_TEST_OUTPUT_RAM_DRIVE_PATH' in os.environ: return _join_path(os.environ['YA_TEST_OUTPUT_RAM_DRIVE_PATH'], path) + return _get_ya_plugin_instance().get_context("test_output_ram_drive_path") def binary_path(path=None): @@ -316,6 +318,10 @@ class Context(object): return _get_ya_config().current_test_name @property + def test_tool_path(self): + return _get_ya_plugin_instance().get_context("test_tool_path") + + @property def sanitize(self): """ Detect if current test run is under sanitizer diff --git a/library/python/testing/yatest_lib/ya.py b/library/python/testing/yatest_lib/ya.py index c13b58a19f..dc2c808ae9 100644 --- a/library/python/testing/yatest_lib/ya.py +++ b/library/python/testing/yatest_lib/ya.py @@ -90,6 +90,8 @@ class Ya(object): self._context["modulo"] = context_runtime.get("split_count", 1) self._context["modulo_index"] = context_runtime.get("split_index", 0) self._context["work_path"] = context_runtime.get("work_path") + self._context["test_tool_path"] = context_runtime.get("test_tool_path") + self._context["test_output_ram_drive_path"] = context_runtime.get("test_output_ram_drive_path") self._context["sanitize"] = context_build.get("sanitizer") self._context["ya_trace_path"] = context_internal.get("trace_file") |