tests: increase session startup timeout for whonix-ws based VMs

First boot of whonix-ws based VM take extended period of time, because
a lot of files needs to be copied to private volume. This takes even
more time, when verbose logging through console is enabled. Extend the
timeout for that.
This commit is contained in:
Marek Marczykowski-Górecki 2018-10-27 16:22:10 +02:00
parent 84d3547f09
commit 84c321b923
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -1204,10 +1204,15 @@ class SystemTestCase(QubesTestCase):
@asyncio.coroutine
def wait_for_session(self, vm):
timeout = 30
if getattr(vm, 'template', None) and 'whonix-ws' in vm.template.name:
# first boot of whonix-ws takes more time because of /home
# initialization, including Tor Browser copying
timeout = 120
yield from asyncio.wait_for(
vm.run_service_for_stdio(
'qubes.WaitForSession', input=vm.default_user.encode()),
timeout=30)
timeout=timeout)
_templates = None