diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index 9bb1f4bb2d..81ca32e11b 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py @@ -262,3 +262,33 @@ class QemuRunner: basecmd = os.path.basename(basecmd) if "qemu-system" in basecmd and "-serial tcp" in commands[p]: return [int(p),commands[p]] + + def run_serial(self, command): + # We assume target system have echo to get command status + self.server_socket.sendall("%s; echo $?\n" % command) + data = '' + status = 0 + stopread = False + endtime = time.time()+5 + while time.time()