Start printing container output to stdout as well, and update container

This commit is contained in:
Micah Lee 2020-01-10 17:23:19 -08:00
parent 90df7894aa
commit 46585f15a8
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
2 changed files with 4 additions and 1 deletions

View file

@ -19,6 +19,8 @@ class TaskBase(QtCore.QThread):
def exec_container(self, args, watch="stdout"):
args = [self.common.container_runtime] + args
args_str = " ".join(pipes.quote(s) for s in args)
print()
print(f"Executing: {args_str}")
output = f"Executing: {args_str}\n\n"
self.update_details.emit(output)
@ -38,6 +40,7 @@ class TaskBase(QtCore.QThread):
for line in pipe:
output += line
print(line, end="")
self.update_details.emit(output)
if watch == "stdout":

@ -1 +1 @@
Subproject commit 86599101444c476d2c53a97232e8c6bcbecadc09
Subproject commit 59e5a6618ce391b30b9123d545124d92a223b8dc