Skip to content

Commit db2e270

Browse files
zulinx86roypat
authored andcommitted
test: Remove test_max_cpus.py
test_max_cpus.py tests vCPUs are online only on a microVM without CPU templates, which is now covered as part of test_all_vcpus_online(). Remove the test and use the maximum number of vCPUs in the new tests. Signed-off-by: Takahiro Itazuri <[email protected]>
1 parent 21472d0 commit db2e270

File tree

2 files changed

+7
-23
lines changed

2 files changed

+7
-23
lines changed

tests/integration_tests/functional/test_cpu_multiple.py renamed to tests/integration_tests/functional/test_cpu_all.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@
99
are operating identically, except for the expected differences.
1010
"""
1111

12+
import pytest
1213

14+
# Use the maximum number of vCPUs supported by Firecracker
15+
MAX_VCPUS = 32
16+
17+
18+
@pytest.mark.parametrize("vcpu_count", [MAX_VCPUS])
1319
def test_all_vcpus_online(uvm_any):
1420
"""Check all vCPUs are online inside guest"""
1521
assert (
@@ -18,6 +24,7 @@ def test_all_vcpus_online(uvm_any):
1824
)
1925

2026

27+
@pytest.mark.parametrize("vcpu_count", [MAX_VCPUS])
2128
def test_all_vcpus_have_same_features(uvm_any):
2229
"""
2330
Check all vCPUs have the same features inside guest.

tests/integration_tests/functional/test_max_vcpus.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)