tests: qemuxml2argv: Add a 'serial' value for a SCSI disk

Upcoming addition of a new field will need to make sure that SCSI disk
serial is tested as well. Add a case to one of the existing tests.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Peter Krempa 2019-01-28 17:04:05 +01:00
parent 1328a830ce
commit 9222b402e5
3 changed files with 3 additions and 1 deletions

View File

@ -34,7 +34,7 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
-device scsi-hd,bus=scsi0.0,scsi-id=0,drive=drive-scsi0-0-0,id=scsi0-0-0 \ -device scsi-hd,bus=scsi0.0,scsi-id=0,drive=drive-scsi0-0-0,id=scsi0-0-0 \
-drive file=/tmp/scsidisk2.img,format=raw,if=none,id=drive-scsi1-0-0-0 \ -drive file=/tmp/scsidisk2.img,format=raw,if=none,id=drive-scsi1-0-0-0 \
-device scsi-hd,bus=scsi1.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi1-0-0-0,\ -device scsi-hd,bus=scsi1.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi1-0-0-0,\
id=scsi1-0-0-0 \ id=scsi1-0-0-0,serial=abcdefghijklmn \
-drive file=/tmp/scsidisk3.img,format=raw,if=none,id=drive-scsi2-0-0-0 \ -drive file=/tmp/scsidisk3.img,format=raw,if=none,id=drive-scsi2-0-0-0 \
-device scsi-hd,bus=scsi2.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi2-0-0-0,\ -device scsi-hd,bus=scsi2.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi2-0-0-0,\
id=scsi2-0-0-0,wwn=0x5000c50015ea71ac \ id=scsi2-0-0-0,wwn=0x5000c50015ea71ac \

View File

@ -28,6 +28,7 @@
<source file='/tmp/scsidisk2.img'/> <source file='/tmp/scsidisk2.img'/>
<target dev='sdb' bus='scsi'/> <target dev='sdb' bus='scsi'/>
<address type='drive' controller='1' bus='0' target='0' unit='0'/> <address type='drive' controller='1' bus='0' target='0' unit='0'/>
<serial>abcdefghijklmn</serial>
</disk> </disk>
<disk type='file' device='disk'> <disk type='file' device='disk'>
<source file='/tmp/scsidisk3.img'/> <source file='/tmp/scsidisk3.img'/>

View File

@ -30,6 +30,7 @@
<driver name='qemu' type='raw'/> <driver name='qemu' type='raw'/>
<source file='/tmp/scsidisk2.img'/> <source file='/tmp/scsidisk2.img'/>
<target dev='sdb' bus='scsi'/> <target dev='sdb' bus='scsi'/>
<serial>abcdefghijklmn</serial>
<address type='drive' controller='1' bus='0' target='0' unit='0'/> <address type='drive' controller='1' bus='0' target='0' unit='0'/>
</disk> </disk>
<disk type='file' device='disk'> <disk type='file' device='disk'>