aboutsummaryrefslogtreecommitdiffstats
path: root/library/python
diff options
context:
space:
mode:
authoriaz1607 <iaz1607@yandex-team.com>2023-06-21 10:51:11 +0300
committeriaz1607 <iaz1607@yandex-team.com>2023-06-21 10:51:11 +0300
commitf8d5b58215970aae9fbf989fea7c6588f0b6d142 (patch)
treef2aa509fa4ba0f132ed871655a8a3f4ce7c1233f /library/python
parente24a4fb8bb193bb7132c660bfe6dd24a95ee5bfc (diff)
downloadydb-f8d5b58215970aae9fbf989fea7c6588f0b6d142.tar.gz
Fix output dir in retries case
Diffstat (limited to 'library/python')
-rw-r--r--library/python/testing/yatest_common/yatest/common/runtime.py8
1 files changed, 6 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 8ab51f3de7..af9155d8e8 100644
--- a/library/python/testing/yatest_common/yatest/common/runtime.py
+++ b/library/python/testing/yatest_common/yatest/common/runtime.py
@@ -7,7 +7,6 @@ import threading
import six
-
_lock = threading.Lock()
_config = None
@@ -303,7 +302,12 @@ def test_output_path(path=None):
"""
Get dir in the suite output_path for the current test case
"""
- test_out_dir = os.path.splitext(_get_ya_config().current_test_log_path)[0]
+ test_log_path = _get_ya_config().current_test_log_path
+ test_out_dir, log_ext = os.path.splitext(test_log_path)
+ log_ext = log_ext.strip(".")
+ if log_ext.isdigit():
+ test_out_dir = os.path.splitext(test_out_dir)[0]
+ test_out_dir = test_out_dir + "_" + log_ext
try:
os.makedirs(test_out_dir)
except OSError as e: