Skip to content

Commit

Permalink
Use runbook variable instead host_stress config
Browse files Browse the repository at this point in the history
Used runbook variable instead host_stress config to get guest_vm_type
for mshv host stress test

Signed-off-by: Smit Gardhariya <[email protected]>
  • Loading branch information
smit-gardhariya authored and LiliDeng committed Oct 3, 2023
1 parent b4f32ce commit 9470d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion microsoft/testsuites/mshv/mshv_root_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def stress_mshv_vm_create(
) -> None:
configs = variables.get(self.CONFIG_VARIABLE, [{}])
igvm_path = variables.get(self.IGVM_PATH_VARIABLE, "")
guest_vm_type = variables.get("clh_guest_vm_type", self.DEFAULT_GUEST_VM_TYPE)

# This test can end up creating and a lot of ssh sessions and these kept active
# at the same time.
Expand All @@ -102,7 +103,6 @@ def stress_mshv_vm_create(
times = config.get("iterations", self.DEFAULT_ITERS)
cpus_per_vm = config.get("cpus_per_vm", self.DEFAULT_CPUS_PER_VM)
mem_per_vm_mb = config.get("mem_per_vm_mb", self.DEFAULT_MEM_PER_VM_MB)
guest_vm_type = config.get("clh_guest_vm_type", self.DEFAULT_GUEST_VM_TYPE)
test_name = f"mshv_stress_vm_create_{times}times_{cpus_per_vm}cpu_{mem_per_vm_mb}MB" # noqa: E501
try:
self._mshv_stress_vm_create(
Expand Down

0 comments on commit 9470d0a

Please sign in to comment.