oeqa/qemurunner: add run_serial() comment

Add a comment explaining the non-obvious return codes.

(From OE-Core rev: cdf3a1a20f02f43451f86a321c001e6b049a4ffc)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6572baffa02ba6b8a686490d55af17cacb528920)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2022-08-22 16:19:48 +01:00
committed by Richard Purdie
parent 7712782d90
commit 672187ff65

View File

@@ -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