Skip to content

Commit

Permalink
Merge pull request autotest#5017 from hs0210/numa_discard
Browse files Browse the repository at this point in the history
numa: Add version check for discard and emulator tests
  • Loading branch information
dzhengfy committed Jul 6, 2023
2 parents ebd0198 + 847d11e commit c7c2bbc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
- guest_numa_node_tuning.memory_binding_with_emulator_thread:
func_supported_since_libvirt_ver = (9, 3, 0)
type = memory_binding_with_emulator_thread
take_regular_screendumps = no
start_vm = "no"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
- guest_numa_topology.various_numa_topology_settings:
func_supported_since_libvirt_ver = (9, 3, 0)
type = various_numa_topology_settings
take_regular_screendumps = no
start_vm = "no"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ def run(test, params, env):
"""
Test for numa memory binding with emulator thread pin
"""
libvirt_version.is_libvirt_feature_supported(params)
vm_name = params.get("main_vm")
vm = env.get_vm(vm_name)
numatest_obj = numa_base.NumaTest(vm, params, test)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import re

from virttest import libvirt_version
from virttest import test_setup
from virttest import virsh
from virttest.libvirt_xml import vm_xml
Expand Down Expand Up @@ -166,6 +167,7 @@ def teardown_default(test_obj):


def run(test, params, env):
libvirt_version.is_libvirt_feature_supported(params)
vm_name = params.get("main_vm")
vm = env.get_vm(vm_name)
numatest_obj = numa_base.NumaTest(vm, params, test)
Expand Down

0 comments on commit c7c2bbc

Please sign in to comment.