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 committed 2019-02-08 08:48:33 +01:00
1 parent 1328a830ce
commit 9222b402e5
3 files changed
+3 -1

No files matched your search

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