fix: custom runtime image won't work for go (#3464)

* fix request param for container_image;
add test for go;

* fix go version issue

* update test to detect go version
This commit is contained in:
Xingyao Wang
2024-08-20 23:38:59 +08:00
committed by GitHub
parent a7dfd5b9fa
commit c8452f5813
2 changed files with 36 additions and 8 deletions

View File

@@ -170,7 +170,7 @@ class RuntimeClient:
def _init_bash_shell(self, work_dir: str, username: str) -> None:
self.shell = pexpect.spawn(
f'su - {username}',
f'su {username}',
encoding='utf-8',
echo=False,
)