From e9f3b57be58f41dff69771bd040d7fe996bb9837 Mon Sep 17 00:00:00 2001 From: Umang Francis Date: Thu, 6 Feb 2025 18:19:04 +0530 Subject: [PATCH] changes to the test verify_vmbus_devices_channels as per the patches --- microsoft/testsuites/core/lsvmbus.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/microsoft/testsuites/core/lsvmbus.py b/microsoft/testsuites/core/lsvmbus.py index 0e031d133a..004cedb4e1 100644 --- a/microsoft/testsuites/core/lsvmbus.py +++ b/microsoft/testsuites/core/lsvmbus.py @@ -134,9 +134,11 @@ def verify_vmbus_devices_channels(self, node: Node) -> None: # vmbus channels created and associated. lscpu_tool = node.tools[Lscpu] core_count = lscpu_tool.get_core_count() - # Each netvsc device should have "the_number_of_vCPUs" channel(s) - # with a cap value of 8. - expected_network_channel_count = min(core_count, 8) + # Each netvsc device should have channels based on the number of vCPUs + if core_count <= 16: + expected_network_channel_count = core_count + else: + expected_network_channel_count = min(64, max(16, core_count // 2)) # Each storvsc SCSI device should have "the_number_of_vCPUs / 4" channel(s) # with a cap value of 64. if node.nics.is_mana_device_present():