diff options
-rw-r--r-- | meta/lib/oeqa/utils/qemurunner.py | 8 |
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 |