stream responses and all tests passing
This commit is contained in:
+3
-3
@@ -30,12 +30,12 @@ class PodmanSandbox:
|
||||
)
|
||||
return self
|
||||
|
||||
async def run(self, command: str) -> str:
|
||||
def run(self, command: str) -> str:
|
||||
"""Execute command in microVM/"""
|
||||
exit_code, output = self.container.exec_run(
|
||||
["/bin/sh", "-c", command], workdir="/workspace"
|
||||
["/bin/sh", "-c", command], workdir="/workspace", demux=False
|
||||
)
|
||||
return output.decode()
|
||||
return output.decode("utf-8", errors="replace")
|
||||
|
||||
async def __aexit__(self, *args):
|
||||
if self.container:
|
||||
|
||||
Reference in New Issue
Block a user