make qvm-shutdown nice for unit tests

Make it deterministic.
This commit is contained in:
Marek Marczykowski-Górecki 2017-12-10 22:39:39 +01:00
parent 8ebcb438dd
commit 448fbb8309
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -83,7 +83,7 @@ def main(args=None, app=None): # pylint: disable=missing-docstring
# pylint: disable=no-member
loop.run_until_complete(asyncio.wait_for(
qubesadmin.events.utils.wait_for_domain_shutdown(
this_round_domains),
sorted(this_round_domains)),
args.timeout))
except asyncio.TimeoutError:
for vm in this_round_domains: