diff options
Diffstat (limited to 'meta/lib/oeqa/utils/qemurunner.py')
| -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 fedabb189a..aa9e530f1b 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py | |||
| @@ -342,6 +342,8 @@ class QemuRunner: | |||
| 342 | return False | 342 | return False |
| 343 | 343 | ||
| 344 | try: | 344 | try: |
| 345 | # set timeout value for all QMP calls | ||
| 346 | self.qmp.settimeout(self.runqemutime) | ||
| 345 | self.qmp.connect() | 347 | self.qmp.connect() |
| 346 | connect_time = time.time() | 348 | connect_time = time.time() |
| 347 | self.logger.info("QMP connected to QEMU at %s and took %s seconds" % | 349 | self.logger.info("QMP connected to QEMU at %s and took %s seconds" % |
| @@ -617,6 +619,7 @@ class QemuRunner: | |||
| 617 | 619 | ||
| 618 | def run_monitor(self, command, args=None, timeout=60): | 620 | def run_monitor(self, command, args=None, timeout=60): |
| 619 | if hasattr(self, 'qmp') and self.qmp: | 621 | if hasattr(self, 'qmp') and self.qmp: |
| 622 | self.qmp.settimeout(timeout) | ||
| 620 | if args is not None: | 623 | if args is not None: |
| 621 | return self.qmp.cmd(command, args) | 624 | return self.qmp.cmd(command, args) |
| 622 | else: | 625 | else: |
