Use root to create dir and then transfer it to load user #23
1 changed files with 3 additions and 1 deletions
|
@ -13,6 +13,7 @@ from frostfs_testlib.load.load_config import (
|
||||||
)
|
)
|
||||||
from frostfs_testlib.processes.remote_process import RemoteProcess
|
from frostfs_testlib.processes.remote_process import RemoteProcess
|
||||||
from frostfs_testlib.reporter import get_reporter
|
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.shell import Shell
|
||||||
from frostfs_testlib.storage.dataclasses.wallet import WalletInfo
|
from frostfs_testlib.storage.dataclasses.wallet import WalletInfo
|
||||||
|
|
||||||
|
@ -154,7 +155,8 @@ class K6:
|
||||||
@reporter.step_deco("Start K6 on initiator")
|
@reporter.step_deco("Start K6 on initiator")
|
||||||
def start(self) -> None:
|
def start(self) -> None:
|
||||||
# Make working_dir directory
|
# 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 = (
|
command = (
|
||||||
f"{self._k6_dir}/k6 run {self._generate_env_variables()} "
|
f"{self._k6_dir}/k6 run {self._generate_env_variables()} "
|
||||||
|
|
Loading…
Reference in a new issue