Skip to content

Commit ce0f006

Browse files
committed
test: disable memory monitor in test_cpu_all.py
With secret freedom, Firecracker tracks more per-vcpu metadata, so in a test with 32 vcpus, we manage to barely go above the memory limit. Just disable the monitor for these tests. Signed-off-by: Patrick Roy <[email protected]>
1 parent 11811c7 commit ce0f006

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/integration_tests/functional/test_cpu_all.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
@pytest.mark.parametrize("vcpu_count", [MAX_VCPUS])
1919
def test_all_vcpus_online(uvm_any):
2020
"""Check all vCPUs are online inside guest"""
21+
uvm_any.memory_monitor = None
2122
assert (
2223
uvm_any.ssh.check_output("cat /sys/devices/system/cpu/online").stdout.strip()
2324
== f"0-{uvm_any.vcpus_count - 1}"
@@ -37,6 +38,7 @@ def test_all_vcpus_have_same_features(uvm_any):
3738
only test the equivalence of all CPUs in the same guest.
3839
"""
3940
# Get a feature set for each CPU and deduplicate them.
41+
uvm_any.memory_monitor = None
4042
unique_feature_lists = uvm_any.ssh.check_output(
4143
'grep -E "^(flags|Features)" /proc/cpuinfo | uniq'
4244
).stdout.splitlines()

0 commit comments

Comments
 (0)