Commit b978119aa7 for qemu.org
commit b978119aa760e283e192fb4813a169cff4999a03
Author: Daniil Tatianin <d-tatianin@yandex-team.ru>
Date: Mon Jun 29 23:13:32 2026 +0300
tests/../test_hotplug_blk: drop unused nic
The test doesn't need any networking, so drop the net card.
Also the test will break if at some moment q35 aliase refers
to machine type with default virtio-net nic, which will clash with
virtio-blk in the test, and
self.wait_for_console_pattern('virtio_blk virtio0: [vda]')
will not work.
Let's make the test a bit more resistant to experiments with
machine type.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Message-ID: <20260629201332.1001055-1-vsementsov@yandex-team.ru>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
diff --git a/tests/functional/x86_64/test_hotplug_blk.py b/tests/functional/x86_64/test_hotplug_blk.py
index 7ddbfefc21..a9b43fe2e9 100755
--- a/tests/functional/x86_64/test_hotplug_blk.py
+++ b/tests/functional/x86_64/test_hotplug_blk.py
@@ -66,6 +66,7 @@ def test(self) -> None:
self.set_machine('q35')
self.vm.add_args('-accel', 'kvm')
+ self.vm.add_args("-nic", "none") # avoid creating default nic
self.vm.add_args('-device', 'pcie-pci-bridge,id=pci.1,bus=pcie.0')
self.vm.add_args('-m', '1G')
self.vm.add_args('-append', 'console=ttyS0 rd.rescue')