We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f39f7ec commit 5534c04Copy full SHA for 5534c04
library/python/testing/yatest_common/yatest/common/runtime.py
@@ -1,6 +1,7 @@
1
-import os
+import errno
2
import functools
3
import json
4
+import os
5
import threading
6
7
import six
@@ -181,8 +182,11 @@ def test_output_path(path=None):
181
182
"""
183
import pytest
184
test_out_dir = os.path.splitext(pytest.config.current_test_log_path)[0]
- if not os.path.exists(test_out_dir):
185
+ try:
186
os.makedirs(test_out_dir)
187
+ except OSError as e:
188
+ if e.errno != errno.EEXIST:
189
+ raise
190
return _join_path(test_out_dir, path)
191
192
0 commit comments