Skip to contentSkip to conversation

tests/functional: Convert the hotplug_blk avocado test

PATCH In review Thomas Huth 2 participants 2 messages Jan 30, 2025 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/functional: Convert the hotplug_blk avocado test

By using the serial console instead of ssh for executing commands in the guest, we can convert this test to the functional framework.

---
 MAINTAINERS                                   |  1 +
 tests/functional/meson.build                  |  1 +
 .../test_x86_64_hotplug_blk.py}               | 50 ++++++++++++-------
 3 files changed, 35 insertions(+), 17 deletions(-)
 rename tests/{avocado/hotplug_blk.py => functional/test_x86_64_hotplug_blk.py} (47%)
 mode change 100644 => 100755
MAINTAINERS +1 -0
index 414b6f35fe..1aa519da57 100644
@@ -2273,6 +2273,7 @@ F: hw/block/virtio-blk.c
 F: hw/block/dataplane/*
 F: include/hw/virtio/virtio-blk-common.h
 F: tests/qtest/virtio-blk-test.c
+F: tests/functional/test_x86_64_hotplug_blk.py
 T: git https://github.com/stefanha/qemu.git block
 
 virtio-ccw
tests/functional/meson.build +1 -0
index 257c7e8182..a14e10124b 100644
@@ -283,6 +283,7 @@ tests_x86_64_system_thorough = [
   'multiprocess',
   'netdev_ethtool',
   'virtio_gpu',
+  'x86_64_hotplug_blk',
   'x86_64_hotplug_cpu',
   'x86_64_kvm_xen',
   'x86_64_tuxrun',
tests/functional/test_x86_64_hotplug_blk.py renamed from tests/avocado/hotplug_blk.py +33 -17

87 lines not on this page · raw message

Signature · 1 line
2.48.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Thomas Huth

By using the serial console instead of ssh for executing commands in the guest, we can convert this test to the functional framework.

---
 MAINTAINERS                                   |  1 +
 tests/functional/meson.build                  |  1 +
 .../test_x86_64_hotplug_blk.py}               | 50 ++++++++++++-------
 3 files changed, 35 insertions(+), 17 deletions(-)
 rename tests/{avocado/hotplug_blk.py => functional/test_x86_64_hotplug_blk.py} (47%)
 mode change 100644 => 100755

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|