Skip to content

Commit

Permalink
test: Remove test_max_cpus.py
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
zulinx86 committed Dec 10, 2024
1 parent e4b2ecb commit 58cfbde
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
are operating identically, except for the expected differences.
"""

import pytest

# Use the maximum number of vCPUs supported by Firecracker
MAX_VCPUS = 32


@pytest.mark.parametrize("vcpu_count", [MAX_VCPUS])
def test_all_vcpus_online(uvm_any):
"""Check all vCPUs are online inside guest"""
assert (
Expand All @@ -18,6 +24,7 @@ def test_all_vcpus_online(uvm_any):
)


@pytest.mark.parametrize("vcpu_count", [MAX_VCPUS])
def test_all_vcpus_have_same_features(uvm_any):
"""
Check all vCPUs have the same features inside guest.
Expand Down
23 changes: 0 additions & 23 deletions tests/integration_tests/functional/test_max_vcpus.py

This file was deleted.

0 comments on commit 58cfbde

Please sign in to comment.