]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
oeqa/qemurunner: add run_serial() comment
authorRoss Burton <ross.burton@arm.com>
Mon, 22 Aug 2022 15:19:48 +0000 (16:19 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 23 Aug 2022 14:23:27 +0000 (15:23 +0100)
Add a comment explaining the non-obvious return codes.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/qemurunner.py

index 76296d50cde472138250cee439fae0ad358310d7..4c3d2010fb65583c261e8d7ea0e54c46978c4347 100644 (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