diff options
| -rw-r--r-- | meta/lib/oeqa/utils/qemurunner.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index 2e054447fc..bce00c696a 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py | |||
| @@ -350,6 +350,8 @@ class QemuRunner: | |||
| 350 | return False | 350 | return False |
| 351 | 351 | ||
| 352 | try: | 352 | try: |
| 353 | # set timeout value for all QMP calls | ||
| 354 | self.qmp.settimeout(self.runqemutime) | ||
| 353 | self.qmp.connect() | 355 | self.qmp.connect() |
| 354 | connect_time = time.time() | 356 | connect_time = time.time() |
| 355 | self.logger.info("QMP connected to QEMU at %s and took %s seconds" % | 357 | self.logger.info("QMP connected to QEMU at %s and took %s seconds" % |
| @@ -628,6 +630,7 @@ class QemuRunner: | |||
| 628 | 630 | ||
| 629 | def run_monitor(self, command, args=None, timeout=60): | 631 | def run_monitor(self, command, args=None, timeout=60): |
| 630 | if hasattr(self, 'qmp') and self.qmp: | 632 | if hasattr(self, 'qmp') and self.qmp: |
| 633 | self.qmp.settimeout(timeout) | ||
| 631 | if args is not None: | 634 | if args is not None: |
| 632 | return self.qmp.cmd(command, args) | 635 | return self.qmp.cmd(command, args) |
| 633 | else: | 636 | else: |
