Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions qubes/tests/integ/dispvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,12 +377,14 @@ async def wait_preload(
appvm=None,
wait_completion=True,
fail_on_timeout=True,
timeout=60,
timeout=0,
):
"""Waiting for completion avoids coroutine objects leaking."""
logger.info("start")
if not appvm:
appvm = self.disp_base
if not timeout:
timeout = appvm.qrexec_timeout
for _ in range(timeout):
preload_dispvm = appvm.get_feat_preload()
if len(preload_dispvm) == preload_max:
Expand Down Expand Up @@ -600,15 +602,8 @@ def test_015_preload_race_more(self):
self.loop.run_until_complete(self._test_015_preload_race_more())

async def _test_015_preload_race_more(self):
# The limiting factor is how much memory is available on OpenQA:
# Whonix (Kicksecure) 17 fail more due to higher memory consumption.
# From the templates deployed by default, only Debian and Fedora
# survives due to using less memory than the other OSes.
logger.info("start")
preload_max = 3
# dist = self.disp_base.features.check_with_template("os-distribution")
# if dist in ["whonix", "kicksecure"]:
# preload_max -= 1
self.disp_base.features["preload-dispvm-max"] = str(preload_max)
await self.wait_preload(preload_max)
old_preload = self.disp_base.get_feat_preload()
Expand Down