add timeout parameter to cli and to pytest_abra
This commit is contained in:
parent
a499891fe8
commit
8a136e5e6c
4 changed files with 19 additions and 17 deletions
|
|
@ -12,7 +12,9 @@ from pytest_abra.utils import rmtree
|
|||
|
||||
|
||||
class Coordinator:
|
||||
def __init__(self, env_paths_list: list[Path], output_dir: Path, session_id: str, recipes_dir: Path) -> None:
|
||||
def __init__(
|
||||
self, env_paths_list: list[Path], output_dir: Path, session_id: str, recipes_dir: Path, timeout: int
|
||||
) -> None:
|
||||
# logging
|
||||
out_string = "".join([e.name + "\n" for e in env_paths_list])
|
||||
out_string += f"output_dir = {output_dir}\n"
|
||||
|
|
@ -22,6 +24,7 @@ class Coordinator:
|
|||
self.RUNNER_DICT = self.create_runner_dict(recipes_dir)
|
||||
self.DIR = DirManager(output_dir=output_dir, session_id=session_id, recipes_dir=recipes_dir)
|
||||
self.ENV = EnvManager(env_paths_list, self.RUNNER_DICT)
|
||||
self.TIMEOUT = timeout
|
||||
|
||||
def setup_test(self) -> None:
|
||||
logger.info("calling setup_test()")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue