Skip to content

Commit a1a4a42

Browse files
Swchexitroypat
authored andcommitted
chore: disable memory monitor in test_attach_too_much_devices
Attaching a large number of devices (94) on aarch64 consumes significant host memory, causing memory monitor checks to fail. Since this test specifically validates behavior when exceeding device limits, memory usage isn't relevant here. Disable the memory monitor check to ensure the test passes consistently. Signed-off-by: Sheng-Wei (Way) Chen <waychensw@gmail.com>
1 parent bc6e250 commit a1a4a42

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

tests/integration_tests/functional/test_max_devices.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,16 @@
1212
# On aarch64, IRQs are available from 32 to 127. We always use one IRQ each for
1313
# the VMGenID and RTC devices, so the maximum number of devices supported
1414
# at the same time is 94.
15-
MAX_DEVICES_ATTACHED = {
16-
"x86_64": 18,
17-
"aarch64": 94
18-
}.get(platform.machine())
15+
MAX_DEVICES_ATTACHED = {"x86_64": 18, "aarch64": 94}.get(platform.machine())
16+
1917

2018
def test_attach_maximum_devices(microvm_factory, guest_kernel, rootfs):
2119
"""
2220
Test attaching maximum number of devices to the microVM.
2321
"""
2422
if MAX_DEVICES_ATTACHED is None:
2523
pytest.skip("Unsupported platform for this test.")
26-
24+
2725
test_microvm = microvm_factory.build(guest_kernel, rootfs, monitor_memory=False)
2826
test_microvm.spawn()
2927

@@ -42,14 +40,14 @@ def test_attach_maximum_devices(microvm_factory, guest_kernel, rootfs):
4240
test_microvm.ssh_iface(i).check_output("sync")
4341

4442

45-
def test_attach_too_many_devices(uvm_plain):
43+
def test_attach_too_many_devices(microvm_factory, guest_kernel, rootfs):
4644
"""
4745
Test attaching to a microVM more devices than available IRQs.
4846
"""
4947
if MAX_DEVICES_ATTACHED is None:
5048
pytest.skip("Unsupported platform for this test.")
51-
52-
test_microvm = uvm_plain
49+
50+
test_microvm = microvm_factory.build(guest_kernel, rootfs, monitor_memory=False)
5351
test_microvm.spawn()
5452

5553
# Set up a basic microVM.

0 commit comments

Comments
 (0)