File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed
ydb/tests/library/harness Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ def __init__(
58
58
command ,
59
59
cwd ,
60
60
timeout ,
61
- stdout_file ,
62
- stderr_file ,
61
+ stdout_file = "/dev/null" ,
62
+ stderr_file = "/dev/null" ,
63
63
stderr_on_error_lines = 0 ,
64
64
core_pattern = None ,
65
65
):
Original file line number Diff line number Diff line change @@ -220,7 +220,12 @@ def __init__(
220
220
221
221
self .__dynamic_pdisks = dynamic_pdisks
222
222
223
- self .__working_dir = output_path or yatest .common .test_output_path ()
223
+ try :
224
+ test_path = yatest .common .test_output_path ()
225
+ except Exception :
226
+ test_path = os .path .abspath ("kikimr_working_dir" )
227
+
228
+ self .__working_dir = output_path or test_path
224
229
225
230
if not os .path .isdir (self .__working_dir ):
226
231
os .makedirs (self .__working_dir )
Original file line number Diff line number Diff line change 24
24
logger = logging .getLogger (__name__ )
25
25
26
26
27
+ def get_unique_path_for_current_test (output_path , sub_folder ):
28
+ # TODO: remove current function, don't rely on test environment, use explicit paths
29
+ # we can't remove it now, because it is used in Arcadia
30
+ import yatest .common
31
+ import os
32
+ try :
33
+ test_name = yatest .common .context .test_name or ""
34
+ except Exception :
35
+ test_name = ""
36
+
37
+ test_name = test_name .replace (':' , '_' )
38
+ return os .path .join (output_path , test_name , sub_folder )
39
+
40
+
27
41
def ensure_path_exists (path ):
28
42
# NOTE: can't switch to os.makedirs(path, exist_ok=True) as some tests
29
43
# are still running under python2 (exist_ok was added in py3.2)
You can’t perform that action at this time.
0 commit comments