mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 18:32:15 +02:00
oeqa/qemurunner: add support qmp cmd args
This will enable passing arguments to qmp commands for those that require additional information (From OE-Core rev: 4d34676b6226a34df2877adbeea25abb5b2a31be) Signed-off-by: Saul Wold <saul.wold@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e6f0176917
commit
879545999f
@@ -602,8 +602,12 @@ class QemuRunner:
|
||||
return True
|
||||
return False
|
||||
|
||||
def run_monitor(self, command, timeout=60):
|
||||
return self.qmp.cmd(command)
|
||||
def run_monitor(self, command, args=None, timeout=60):
|
||||
if hasattr(self, 'qmp') and self.qmp:
|
||||
if args is not None:
|
||||
return self.qmp.cmd(command, args)
|
||||
else:
|
||||
return self.qmp.cmd(command)
|
||||
|
||||
def run_serial(self, command, raw=False, timeout=60):
|
||||
# We assume target system have echo to get command status
|
||||
|
||||
Reference in New Issue
Block a user