mirror of
https://git.yoctoproject.org/poky
synced 2026-04-19 06:32:13 +02:00
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:
committed by
Richard Purdie
parent
7712782d90
commit
672187ff65
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user