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>
Daniil Tatianin committed
Jun 29, 2026 at 23:13 UTC
b978119aa760e283e192fb4813a169cff4999a03
1 file changed
+1
tests/functional/x86_64/test_hotplug_blk.py
+1
@@ -66,6 +66,7 @@ class HotPlugBlk(LinuxKernelTest):
66
self.set_machine('q35')
67
68
self.vm.add_args('-accel', 'kvm')
69
+ self.vm.add_args("-nic", "none") # avoid creating default nic
70
self.vm.add_args('-device', 'pcie-pci-bridge,id=pci.1,bus=pcie.0')
71
self.vm.add_args('-m', '1G')
72
self.vm.add_args('-append', 'console=ttyS0 rd.rescue')