From dbeda3c1f4ffb831b62ba38f435e582b2dc70d51 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Thu, 13 Jul 2023 09:00:55 +0200 Subject: [PATCH] test: Increase TestHostSwitching VM memory for devel scenario The Python bridge currently loads all package files into memory. These become very big in the devel scenario, causing some OOM in TestHostSwitching. This is going to be addressed in PR #19065; increase the VM size until that lands. --- test/verify/check-shell-host-switching | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/verify/check-shell-host-switching b/test/verify/check-shell-host-switching index a4e95faaeb52..23e4fbd2a396 100755 --- a/test/verify/check-shell-host-switching +++ b/test/verify/check-shell-host-switching @@ -17,6 +17,7 @@ # You should have received a copy of the GNU Lesser General Public License # along with Cockpit; If not, see . +import os import time import testlib @@ -104,7 +105,8 @@ class HostSwitcherHelpers: @testlib.todoPybridgeRHEL8() class TestHostSwitching(testlib.MachineCase, HostSwitcherHelpers): provision = { - 'machine1': {"address": "10.111.113.1/20", "memory_mb": 512}, + # HACK: pybridge uses too much memory in devel scenario, revert after PR #19065 + 'machine1': {"address": "10.111.113.1/20", "memory_mb": 768 if "devel" in os.getenv("TEST_SCENARIO", "") else 512}, 'machine2': {"address": "10.111.113.2/20", "memory_mb": 512}, 'machine3': {"address": "10.111.113.3/20", "memory_mb": 512} }