Skip to content

Commit aee9e9b

Browse files
committed
update shell; increase timeout values for initialization and command execution
1 parent 6d2a127 commit aee9e9b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

argus/tools/shell.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ShellTool(Tool):
3535
def __init__(
3636
self,
3737
image: str,
38-
timeout: int = 90,
38+
timeout: int = 120,
3939
workdir: str = "/testbed",
4040
remove_on_cleanup: bool = True,
4141
port: int = 8080,
@@ -86,7 +86,7 @@ def _ensure_shell(self) -> pexpect.spawn:
8686
self._shell.expect([r"\$", r"#"], timeout=30)
8787
# cd to workdir
8888
self._shell.sendline(f"cd {self.workdir}")
89-
self._shell.expect([r"\$", r"#"], timeout=10)
89+
self._shell.expect([r"\$", r"#"], timeout=30)
9090

9191
return self._shell
9292

0 commit comments

Comments
 (0)