make dir on prepare step

Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
This commit is contained in:
Andrey Berezin 2023-05-18 14:30:25 +03:00
parent 7399cc9a8e
commit d30d3d5cfd

View file

@ -153,6 +153,9 @@ 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
self.shell.exec(f"mkdir -p {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()} "
f"{self._k6_dir}/scenarios/{self.scenario.value}.js" f"{self._k6_dir}/scenarios/{self.scenario.value}.js"