python/machine.py: Add a configurable timeout to shutdown()
authorJohn Snow <jsnow@redhat.com>
Fri, 10 Jul 2020 05:06:43 +0000 (01:06 -0400)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 14 Jul 2020 20:22:22 +0000 (22:22 +0200)
commitc9b3045bc2f52aca8825b6a04e9367b87d64d1cf
tree71229f0bf335494fe8f538e78794f4bc04d1c166
parenta3842cb078a195db0715b00edd7812adcb8b077f
python/machine.py: Add a configurable timeout to shutdown()

Three seconds is hardcoded. Use it as a default parameter instead, and use that
value for both waits that may occur in the function.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20200710050649.32434-7-jsnow@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
python/qemu/machine.py