summaryrefslogtreecommitdiffstats
path: root/meta
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:27 +0100
commit4d34676b6226a34df2877adbeea25abb5b2a31be (patch)
tree703f1245cc52f00a61ca18ec50df16a744c359ca /meta
parent9a487fb10682243c6bbbb6a9918760cbeee06c19 (diff)
downloadopenembedded-core-contrib-4d34676b6226a34df2877adbeea25abb5b2a31be.tar.gz
oeqa/qemurunner: add support qmp cmd args
This will enable passing arguments to qmp commands for those that require additional information 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')
-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:
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