summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oeqa/utils/qemurunner.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index 3aeef19434..d21b0a275f 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -346,6 +346,8 @@ class QemuRunner:
346 return False 346 return False
347 347
348 try: 348 try:
349 # set timeout value for all QMP calls
350 self.qmp.settimeout(self.runqemutime)
349 self.qmp.connect() 351 self.qmp.connect()
350 connect_time = time.time() 352 connect_time = time.time()
351 self.logger.info("QMP connected to QEMU at %s and took %s seconds" % 353 self.logger.info("QMP connected to QEMU at %s and took %s seconds" %
@@ -623,6 +625,7 @@ class QemuRunner:
623 625
624 def run_monitor(self, command, args=None, timeout=60): 626 def run_monitor(self, command, args=None, timeout=60):
625 if hasattr(self, 'qmp') and self.qmp: 627 if hasattr(self, 'qmp') and self.qmp:
628 self.qmp.settimeout(timeout)
626 if args is not None: 629 if args is not None:
627 return self.qmp.cmd(command, args) 630 return self.qmp.cmd(command, args)
628 else: 631 else: