Skip to content

Commit

Permalink
issue-2831 increase the verbosiy of fio_index/mount-kikimr-test and m…
Browse files Browse the repository at this point in the history
…ake it large (#2824)
  • Loading branch information
debnatkh authored Jan 10, 2025
1 parent a92fd0a commit bec3ec0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions cloud/filestore/tests/fio_index/mount-kikimr-test/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ TEST_SRCS(
test.py
)

SET(NFS_FORCE_VERBOSE 1)

INCLUDE(${ARCADIA_ROOT}/cloud/filestore/tests/recipes/service-kikimr.inc)
INCLUDE(${ARCADIA_ROOT}/cloud/filestore/tests/recipes/mount.inc)

Expand Down
14 changes: 12 additions & 2 deletions cloud/filestore/tests/recipes/mount/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import argparse
import logging
import os

import yatest.common as common
Expand All @@ -10,6 +11,7 @@


PID_FILE_NAME = "local_mount_nfs_share_recipe.pid"
MOUNT_PATH_FILE_NAME = "local_mount_nfs_share_recipe.mount_path"


def start(argv):
Expand Down Expand Up @@ -52,13 +54,21 @@ def start(argv):

with open(PID_FILE_NAME, 'w') as f:
f.write(",".join([str(pid) for pid in pids]))
with open(MOUNT_PATH_FILE_NAME, 'w') as f:
f.write(",".join(paths))

set_env("NFS_MOUNT_PATH", ",".join(paths))


def stop(argv):
if not os.path.exists(PID_FILE_NAME):
return
# TODO(#2831): remove this debug information
logging.info(os.system("ps aux"))
logging.info(os.system("mount"))
with open(MOUNT_PATH_FILE_NAME) as f:
paths = f.read().split(",")
for path in paths:
logging.info("Mount path: %s", path)
logging.info(os.system(f"ls -la {path}"))

with open(PID_FILE_NAME) as f:
pids = [int(x) for x in f.read().split(",")]
Expand Down

0 comments on commit bec3ec0

Please sign in to comment.