summaryrefslogtreecommitdiff
path: root/src/buildstream/sandbox/_sandboxremote.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/sandbox/_sandboxremote.py')
-rw-r--r--src/buildstream/sandbox/_sandboxremote.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/buildstream/sandbox/_sandboxremote.py b/src/buildstream/sandbox/_sandboxremote.py
index 5ec1c974b..fe7812ba5 100644
--- a/src/buildstream/sandbox/_sandboxremote.py
+++ b/src/buildstream/sandbox/_sandboxremote.py
@@ -298,6 +298,8 @@ class SandboxRemote(SandboxREAPI):
)
def _execute_action(self, action, flags):
+ stdout, stderr = self._get_output()
+
context = self._get_context()
project = self._get_project()
cascache = context.get_cascache()
@@ -375,6 +377,14 @@ class SandboxRemote(SandboxREAPI):
# Now do a pull to ensure we have the full directory structure.
cascache.pull_tree(casremote, tree_digest)
+ # Forward remote stdout and stderr
+ if stdout:
+ if action_result.stdout_raw:
+ stdout.write(str(action_result.stdout_raw, "utf-8", errors="ignore"))
+ if stderr:
+ if action_result.stderr_raw:
+ stderr.write(str(action_result.stderr_raw, "utf-8", errors="ignore"))
+
return action_result
def _check_action_cache(self, action_digest):