autotest / tp-libvirt

Test Provider for Libvirt and related virtualization backends
Other
33 stars 169 forks source link

Virtual_disk: fix "unable to open /dev/sdb" error #5846

Closed meinaLi closed 2 months ago

meinaLi commented 2 months ago

For virtual_disks.multiattributes.block_disk.start_guest, the created sdb disk usually doesn't exist because of known exception. So change to use scsi_debug to setup scsi disk to test.

meinaLi commented 2 months ago
# avocado run --vt-type libvirt --test-runner=runner --vt-machine-type q35 virtual_disks.multiattributes.block_disk.start_guest
JOB ID     : d82ca1b1573b7767e940866dda4ea2852c72865b
JOB LOG    : /var/log/avocado/job-results/job-2024-08-16T05.18-d82ca1b/job.log
 (1/1) type_specific.io-github-autotest-libvirt.virtual_disks.multiattributes.block_disk.start_guest: PASS (30.85 s)
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML   : /var/log/avocado/job-results/job-2024-08-16T05.18-d82ca1b/results.html
JOB TIME   : 31.56 s