diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-06-22 15:26:41 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-06-22 15:26:41 +0300 |
commit | 03ae68528a1fca061195bac52f0484f6f54b2582 (patch) | |
tree | 4093239f0b89511e8ff2b29fabc76300f5ecd10a /library/python/testing/yatest_common/yatest/common/runtime.py | |
parent | 250d29abfdc9a2526cac1e0b4b36c5b6e1d58e0c (diff) | |
download | ydb-03ae68528a1fca061195bac52f0484f6f54b2582.tar.gz |
intermediate changes
ref:e5b94b91d513ee8cc2d1610107a4e0b462b9c9db
Diffstat (limited to 'library/python/testing/yatest_common/yatest/common/runtime.py')
-rw-r--r-- | library/python/testing/yatest_common/yatest/common/runtime.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/library/python/testing/yatest_common/yatest/common/runtime.py b/library/python/testing/yatest_common/yatest/common/runtime.py index d5aba76315..43e5c5b0f6 100644 --- a/library/python/testing/yatest_common/yatest/common/runtime.py +++ b/library/python/testing/yatest_common/yatest/common/runtime.py @@ -131,7 +131,8 @@ 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") + elif get_param("ram_drive_path"): + return _join_path(get_param("ram_drive_path"), path) def output_ram_drive_path(path=None): @@ -142,7 +143,8 @@ 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") + elif _get_ya_plugin_instance().get_context("test_output_ram_drive_path"): + return _join_path(_get_ya_plugin_instance().get_context("test_output_ram_drive_path"), path) def binary_path(path=None): |