Skip to content

Commit

Permalink
fix: csi driver log path (#2227)
Browse files Browse the repository at this point in the history
Move csi driver log to the test folder to avoid loosing logs after running the next test from the suite.
  • Loading branch information
antonmyagkov authored Oct 7, 2024
1 parent 6e35cdf commit cf3b141
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cloud/blockstore/tests/csi_driver/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import yatest.common as common

import contrib.ydb.tests.library.common.yatest_common as yatest_common
from contrib.ydb.tests.library.harness.kikimr_runner import get_unique_path_for_current_test
from cloud.blockstore.config.server_pb2 import TServerAppConfig, TServerConfig, TKikimrServiceConfig
from cloud.blockstore.config.client_pb2 import TClientConfig, TClientAppConfig
from cloud.blockstore.tests.python.lib.loadtest_env import LocalLoadTest
Expand Down Expand Up @@ -123,7 +124,9 @@ def __init__(self, sockets_dir: str, grpc_unix_socket_path: str, vm_mode: bool):
self._endpoint = Path(sockets_dir) / "csi.sock"
self._grpc_unix_socket_path = grpc_unix_socket_path
self._proc = None
self._csi_driver_output = os.path.join(common.output_path(), "driver_output.txt")
self._csi_driver_output = os.path.join(get_unique_path_for_current_test(
output_path=common.output_path(),
sub_folder=""), "driver_output.txt")
self._log_file = None
self._vm_mode = vm_mode

Expand Down

0 comments on commit cf3b141

Please sign in to comment.