Use root to create dir and then transfer it to load user #23

Merged
abereziny merged 1 commit from abereziny/frostfs-testlib:make-dir-by-root into master 2023-05-19 13:40:56 +00:00
Showing only changes of commit 10468fa545 - Show all commits

View file

@ -13,6 +13,7 @@ from frostfs_testlib.load.load_config import (
)
from frostfs_testlib.processes.remote_process import RemoteProcess
from frostfs_testlib.reporter import get_reporter
from frostfs_testlib.resources.load_params import LOAD_NODE_SSH_USER
from frostfs_testlib.shell import Shell
from frostfs_testlib.storage.dataclasses.wallet import WalletInfo
@ -154,7 +155,8 @@ class K6:
@reporter.step_deco("Start K6 on initiator")
def start(self) -> None:
# Make working_dir directory
self.shell.exec(f"mkdir -p {self.load_params.working_dir}")
self.shell.exec(f"sudo mkdir -p {self.load_params.working_dir}")
self.shell.exec(f"sudo chown {LOAD_NODE_SSH_USER} {self.load_params.working_dir}")
command = (
f"{self._k6_dir}/k6 run {self._generate_env_variables()} "