scripts: set timeout when waiting for qemu monitor connection
commit238064621fcf5fabedc36d2acdfffa72c723a748
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 20 Jul 2016 13:23:11 +0000 (20 14:23 +0100)
committerAmit Shah <amit.shah@redhat.com>
Fri, 22 Jul 2016 07:53:28 +0000 (22 13:23 +0530)
tree1d9b8d87f26726425e7753992956d24374c32aeb
parent66613974468fb6e1609fb3eabf55981b1ee436cf
scripts: set timeout when waiting for qemu monitor connection

If QEMU fails to launch for some reason, the QEMUMonitorProtocol
class accept() method will wait forever in a socket accept call.
Set a timeout of 15 seconds so that we fail more gracefully
instead of hanging the test script forever

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <1469020993-29426-5-git-send-email-berrange@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
scripts/qmp/qmp.py