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

Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
This commit is contained in:
Andrey Berezin 2023-05-19 11:16:34 +03:00 committed by Andrey Berezin
parent d9504697ba
commit 10468fa545

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()} "