avocado-framework / avocado-vt

Avocado VT Plugin
https://avocado-vt.readthedocs.org/
Other
83 stars 243 forks source link

qemu_vm: fix vhostfd AttributeError #3932

Closed luckyh closed 4 months ago

luckyh commented 4 months ago

Got the following error since the code did not do a check on the value of the nic.vhostfd var (and also the nic.tapfds var).

File "virttest/qemu_vm.py", line 3656, in create "vhostfd": nic.vhostfds.split(":")[0], ^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'split'

This patch fixes the attribute error.

ID: 2510

luckyh commented 4 months ago

@aliang123 @PaulYuuu @YongxueHong @yanglei-rh would you mind to help review this one? thanks in advance!

aliang123 commented 4 months ago

(5/5) Host_RHEL.m10.u0.ovmf.qcow2.virtio_blk.up.virtio_net.Guest.RHEL.10.0.x86_64.io-github-autotest-qemu.live_backup_add_bitmap.with_raw.persistent_default.q35: PASS (94.95 s)

LGTM