diff mbox series

[1/3] oeqa/qemurunner: add run_serial() comment

Message ID 20220822151950.2611880-1-ross.burton@arm.com
State Accepted, archived
Commit 6572baffa02ba6b8a686490d55af17cacb528920
Headers show
Series [1/3] oeqa/qemurunner: add run_serial() comment | expand

Commit Message

Ross Burton Aug. 22, 2022, 3:19 p.m. UTC
Add a comment explaining the non-obvious return codes.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/lib/oeqa/utils/qemurunner.py | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index 76296d50cde..4c3d2010fb6 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -618,6 +618,8 @@  class QemuRunner:
                 return self.qmp.cmd(command)
 
     def run_serial(self, command, raw=False, timeout=60):
+        # Returns (status, output) where status is 1 on success and 0 on error
+
         # We assume target system have echo to get command status
         if not raw:
             command = "%s; echo $?\n" % command