diff --git a/qemu/tests/cfg/virtio_port_hotplug.cfg b/qemu/tests/cfg/virtio_port_hotplug.cfg index 1802467b478ca8c59477f41276fa5c5624679c9c..079fadad1556f701ead04603b73b1847fb650b4c 100644 --- a/qemu/tests/cfg/virtio_port_hotplug.cfg +++ b/qemu/tests/cfg/virtio_port_hotplug.cfg @@ -37,8 +37,13 @@ unplug_chardev_vs1 = no unplug_chardev_vs2 = no filesize = 100 - Linux: - filesize = 2000 + variants: + - @default: + bg_test = no + repeat_times = 1 + - with_bg_test: + Linux: + filesize = 2000 - unplug_port_chardev_pci: type = virtio_serial_unplug_port_chardev_pci sleep_time = 0.5 diff --git a/qemu/tests/virtio_port_hotplug.py b/qemu/tests/virtio_port_hotplug.py index d8379274ecb55f53916155814812fddc77ff36f6..913c721183971bb3eb7ee17bd4b0d71b6aa14145 100644 --- a/qemu/tests/virtio_port_hotplug.py +++ b/qemu/tests/virtio_port_hotplug.py @@ -34,7 +34,8 @@ def run(test, params, env): os_type = params["os_type"] timeout = int(params.get("login_timeout", 360)) module = params.get("modprobe_module") - check_module = params.get_boolean("check_module", "yes") + check_module = params.get_boolean("check_module", True) + bg_test = params.get_boolean("bg_test", True) session = vm.wait_for_login() if os_type == "windows": driver_name = params["driver_name"] @@ -61,7 +62,8 @@ def run(test, params, env): test.error("Failed to get device %s" % chardev_qid) if port_params['serial_type'] == 'virtserialport': params['file_transfer_serial_port'] = port - run_bg_test(test, params, vm) + if bg_test: + run_bg_test(test, params, vm) for repeat in range(params.get_numeric("repeat_times", 1)): repeat += 1 if module and check_module: