summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorSaul Wold <Saul.Wold@windriver.com>2021-06-29 07:57:01 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-02 23:14:32 +0100
commit879545999f6277bd441415a0a3815ff57fc004d3 (patch)
tree54184f37e6fdf20eb0c44d8fc9055c26677fb24d /meta/lib
parente6f01769172d5fec291979f3a1ee5a01441eb5bd (diff)
downloadpoky-879545999f6277bd441415a0a3815ff57fc004d3.tar.gz
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>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/utils/qemurunner.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index c7f7860317..10c54d6afa 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -602,8 +602,12 @@ class QemuRunner:
602 return True 602 return True
603 return False 603 return False
604 604
605 def run_monitor(self, command, timeout=60): 605 def run_monitor(self, command, args=None, timeout=60):
606 return self.qmp.cmd(command) 606 if hasattr(self, 'qmp') and self.qmp:
607 if args is not None:
608 return self.qmp.cmd(command, args)
609 else:
610 return self.qmp.cmd(command)
607 611
608 def run_serial(self, command, raw=False, timeout=60): 612 def run_serial(self, command, raw=False, timeout=60):
609 # We assume target system have echo to get command status 613 # We assume target system have echo to get command status