From: Ross Burton Date: Mon, 22 Aug 2022 15:19:48 +0000 (+0100) Subject: oeqa/qemurunner: add run_serial() comment X-Git-Tag: 2022-10~326 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6572baffa02ba6b8a686490d55af17cacb528920;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git oeqa/qemurunner: add run_serial() comment Add a comment explaining the non-obvious return codes. Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- 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