From 56ed0f310152388631f0c2d6b01fd8903efde5be Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 26 Sep 2023 13:57:09 +0200 Subject: [PATCH] test: Disable packagekit in TestStorageLegacyVDO Creating a VDO needs oodles of memory, almost as much as our standard VMs provide. packagekit often starts up in parallel and does its own CPU/memory hungry thing, both together then collide and OOM. We don't need packagekit for this test, so disable it like we did in so many others already. Cherry-picked from main commit 172dd31b2d43eed. --- test/verify/check-storage-vdo | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/verify/check-storage-vdo b/test/verify/check-storage-vdo index c954d3b0deb4..3efd06a50ae9 100755 --- a/test/verify/check-storage-vdo +++ b/test/verify/check-storage-vdo @@ -175,6 +175,11 @@ class TestStorageVDO(storagelib.StorageCase): @testlib.onlyImage("legacy VDO API only supported on RHEL 8", "rhel-8*", "centos-8*") class TestStorageLegacyVDO(storagelib.StorageCase): + def setUp(self): + super().setUp() + # packagekit eats too much CPU/memory in the background + self.machine.execute("systemctl mask packagekit; systemctl stop packagekit") + def testVdo(self): m = self.machine b = self.browser