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 9, 2024
1 parent 2a86306 commit b134c0c
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,9 +9,15 @@
are operating identically, except for the expected differences.
"""

import pytest

from framework.properties import global_props

# 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"""
# pylint: disable=f-string-without-interpolation
Expand All @@ -21,6 +27,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 b134c0c

Please sign in to comment.