From: srinuvasan <
srinuv...@siemens.com>
With these changes, users can see their output of running
commands or set of commands in the launched qemu system.
This would be really helpful to see the actual output
of remotely running programs.
Signed-off-by: srinuvasan <
srinuv...@siemens.com>
---
testsuite/cibuilder.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/testsuite/cibuilder.py b/testsuite/cibuilder.py
index e726ba87..c5ce7fc8 100755
--- a/testsuite/cibuilder.py
+++ b/testsuite/cibuilder.py
@@ -738,6 +738,12 @@ class CIBuilder(Test):
self.log.info(f"Connect command:\n{cmd_prefix}")
rc, stdout, stderr = self.remote_run(cmd, script, timeout)
+
+ stdout = stdout.decode('utf-8') if isinstance(stdout, bytes) else stdout
+ stderr = stderr.decode('utf-8') if isinstance(stderr, bytes) else stderr
+
self.log.info("stdout log:\n" + stdout)
+
self.log.info("stderr log:\n" + stderr)
+
if rc != 0:
if not keep:
self.vm_turn_off(vm)
--
2.39.5