summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2022-08-22 16:19:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-31 16:54:17 +0100
commit672187ff65c830609f2ad22513a2fefaea150f12 (patch)
tree2e803db7fd08ee725e0c1c780b059bd2f1ef48d7
parent7712782d90a84791ceb68712d4af242f1d0e8e60 (diff)
downloadpoky-672187ff65c830609f2ad22513a2fefaea150f12.tar.gz
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>
-rw-r--r--meta/lib/oeqa/utils/qemurunner.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index 76296d50cd..4c3d2010fb 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -618,6 +618,8 @@ class QemuRunner:
618 return self.qmp.cmd(command) 618 return self.qmp.cmd(command)
619 619
620 def run_serial(self, command, raw=False, timeout=60): 620 def run_serial(self, command, raw=False, timeout=60):
621 # Returns (status, output) where status is 1 on success and 0 on error
622
621 # We assume target system have echo to get command status 623 # We assume target system have echo to get command status
622 if not raw: 624 if not raw:
623 command = "%s; echo $?\n" % command 625 command = "%s; echo $?\n" % command