Skip to content

Commit

Permalink
vioser: Supplement the correct function
Browse files Browse the repository at this point in the history
Avoid case calling case, so add corresponding functions

Signed-off-by: Dehan Meng <[email protected]>
  • Loading branch information
6-dehan committed Feb 26, 2025
1 parent 0fab4bf commit c0134ce
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions qemu/tests/vioser_in_use.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ def live_migration_guest(test, params, vm, session):
vm.migrate()


def subw_guest_pause_resume(test, params, vm, session):
vm.monitor.cmd("stop")
if not vm.monitor.verify_status("paused"):
test.error("VM is not paused Current status: %s" % vm.monitor.get_status())
time.sleep(float(params.get("wait_timeout", "1800")))
vm.monitor.cmd("cont")
if not vm.monitor.verify_status("running"):
test.error("VM is not running. Current status: %s" % vm.monitor.get_status())


@error_context.context_aware
def vcpu_hotplug_guest(test, params, vm, session):
"""
Expand Down
6 changes: 6 additions & 0 deletions qemu/tests/virtio_serial_hotplug_port_pci.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
add_virtserial_device,
)
from qemu.tests.virtio_serial_file_transfer import transfer_data
# These imports are used dynamically via globals().get()
from qemu.tests.vioser_in_use import (
reboot_guest,
shutdown_guest,
live_migration_guest,
) # pylint: disable=W0611


def get_buses_and_serial_devices(vm, params, char_devices, serials):
Expand Down

0 comments on commit c0134ce

Please sign in to comment.