]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: qemuxml2argv: Add a 'serial' value for a SCSI disk
authorPeter Krempa <pkrempa@redhat.com>
Mon, 28 Jan 2019 16:04:05 +0000 (17:04 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 8 Feb 2019 07:48:33 +0000 (08:48 +0100)
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>
tests/qemuxml2argvdata/disk-scsi.x86_64-latest.args
tests/qemuxml2argvdata/disk-scsi.xml
tests/qemuxml2xmloutdata/disk-scsi.xml

index ac9f3ff02ec4c9767c1f5c90cea86408a9a9a2d1..68a8b2921d6862050867e3e70cc3d8c3cd4bc5ec 100644 (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 \
 -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 \
index 496d8cab392cd64788a15dd680cc55bbc3d80513..dda413eb0c08bd452464af5444903be38e3eabde 100644 (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'/>
index 96c0cfec7455b2ce440e94888bfd3335061319b6..9cfff4b14e7f26fade431ba5d93897bd9f1a8734 100644 (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'>