|
|
9c6c51 |
From 743fd6401299ceee855b50ee844b8f2fb39551d2 Mon Sep 17 00:00:00 2001
|
|
|
9c6c51 |
Message-Id: <743fd6401299ceee855b50ee844b8f2fb39551d2@dist-git>
|
|
|
9c6c51 |
From: Peter Krempa <pkrempa@redhat.com>
|
|
|
9c6c51 |
Date: Mon, 21 Jan 2019 18:43:12 +0100
|
|
|
9c6c51 |
Subject: [PATCH] tests: qemuxml2argv: Add test case for empty CDROM with cache
|
|
|
9c6c51 |
mode
|
|
|
9c6c51 |
MIME-Version: 1.0
|
|
|
9c6c51 |
Content-Type: text/plain; charset=UTF-8
|
|
|
9c6c51 |
Content-Transfer-Encoding: 8bit
|
|
|
9c6c51 |
|
|
|
9c6c51 |
Upcomming change will influence CDROM with cache mode so add a test
|
|
|
9c6c51 |
case.
|
|
|
9c6c51 |
|
|
|
9c6c51 |
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
|
|
|
9c6c51 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
9c6c51 |
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
|
9c6c51 |
(cherry picked from commit a641e044c1294984979199fefbb9a9c928f7708a)
|
|
|
9c6c51 |
|
|
|
9c6c51 |
https://bugzilla.redhat.com/show_bug.cgi?id=1553255
|
|
|
9c6c51 |
|
|
|
9c6c51 |
Conflicts:
|
|
|
9c6c51 |
tests/qemuxml2argvdata/disk-cdrom.args
|
|
|
9c6c51 |
- context: bootindex not yet assumed
|
|
|
9c6c51 |
tests/qemuxml2argvdata/disk-cdrom.x86_64-2.12.0.args
|
|
|
9c6c51 |
tests/qemuxml2argvdata/disk-cdrom.x86_64-latest.args
|
|
|
9c6c51 |
- missing refactor to capability file based tests
|
|
|
9c6c51 |
|
|
|
9c6c51 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
9c6c51 |
---
|
|
|
9c6c51 |
tests/qemuxml2argvdata/disk-cdrom.args | 4 +++-
|
|
|
9c6c51 |
tests/qemuxml2argvdata/disk-cdrom.xml | 6 ++++++
|
|
|
9c6c51 |
tests/qemuxml2xmloutdata/disk-cdrom.xml | 6 ++++++
|
|
|
9c6c51 |
3 files changed, 15 insertions(+), 1 deletion(-)
|
|
|
9c6c51 |
|
|
|
9c6c51 |
diff --git a/tests/qemuxml2argvdata/disk-cdrom.args b/tests/qemuxml2argvdata/disk-cdrom.args
|
|
|
9c6c51 |
index 55a76f6dac..547263cbd8 100644
|
|
|
9c6c51 |
--- a/tests/qemuxml2argvdata/disk-cdrom.args
|
|
|
9c6c51 |
+++ b/tests/qemuxml2argvdata/disk-cdrom.args
|
|
|
9c6c51 |
@@ -24,6 +24,8 @@ server,nowait \
|
|
|
9c6c51 |
-usb \
|
|
|
9c6c51 |
-drive file=/dev/HostVG/QEMUGuest1,format=raw,if=none,id=drive-ide0-0-0 \
|
|
|
9c6c51 |
-device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 \
|
|
|
9c6c51 |
--drive file=/root/boot.iso,format=raw,if=none,id=drive-ide0-1-0,media=cdrom,\
|
|
|
9c6c51 |
+-drive file=/root/boot.iso,format=raw,if=none,id=drive-ide0-0-1,media=cdrom,\
|
|
|
9c6c51 |
readonly=on \
|
|
|
9c6c51 |
+-device ide-drive,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 \
|
|
|
9c6c51 |
+-drive if=none,id=drive-ide0-1-0,media=cdrom,readonly=on,cache=none \
|
|
|
9c6c51 |
-device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0
|
|
|
9c6c51 |
diff --git a/tests/qemuxml2argvdata/disk-cdrom.xml b/tests/qemuxml2argvdata/disk-cdrom.xml
|
|
|
9c6c51 |
index 341025c477..fa78f652bf 100644
|
|
|
9c6c51 |
--- a/tests/qemuxml2argvdata/disk-cdrom.xml
|
|
|
9c6c51 |
+++ b/tests/qemuxml2argvdata/disk-cdrom.xml
|
|
|
9c6c51 |
@@ -23,6 +23,12 @@
|
|
|
9c6c51 |
<disk type='file' device='cdrom'>
|
|
|
9c6c51 |
<driver name='qemu' type='raw'/>
|
|
|
9c6c51 |
<source file='/root/boot.iso'/>
|
|
|
9c6c51 |
+ <target dev='hdb' bus='ide'/>
|
|
|
9c6c51 |
+ <readonly/>
|
|
|
9c6c51 |
+ <address type='drive' controller='0' bus='0' target='0' unit='1'/>
|
|
|
9c6c51 |
+ </disk>
|
|
|
9c6c51 |
+ <disk type='file' device='cdrom'>
|
|
|
9c6c51 |
+ <driver name='qemu' type='raw' cache='none'/>
|
|
|
9c6c51 |
<target dev='hdc' bus='ide'/>
|
|
|
9c6c51 |
<readonly/>
|
|
|
9c6c51 |
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
|
|
|
9c6c51 |
diff --git a/tests/qemuxml2xmloutdata/disk-cdrom.xml b/tests/qemuxml2xmloutdata/disk-cdrom.xml
|
|
|
9c6c51 |
index 163ce88f19..ccc2716828 100644
|
|
|
9c6c51 |
--- a/tests/qemuxml2xmloutdata/disk-cdrom.xml
|
|
|
9c6c51 |
+++ b/tests/qemuxml2xmloutdata/disk-cdrom.xml
|
|
|
9c6c51 |
@@ -23,6 +23,12 @@
|
|
|
9c6c51 |
<disk type='file' device='cdrom'>
|
|
|
9c6c51 |
<driver name='qemu' type='raw'/>
|
|
|
9c6c51 |
<source file='/root/boot.iso'/>
|
|
|
9c6c51 |
+ <target dev='hdb' bus='ide'/>
|
|
|
9c6c51 |
+ <readonly/>
|
|
|
9c6c51 |
+ <address type='drive' controller='0' bus='0' target='0' unit='1'/>
|
|
|
9c6c51 |
+ </disk>
|
|
|
9c6c51 |
+ <disk type='file' device='cdrom'>
|
|
|
9c6c51 |
+ <driver name='qemu' type='raw' cache='none'/>
|
|
|
9c6c51 |
<target dev='hdc' bus='ide'/>
|
|
|
9c6c51 |
<readonly/>
|
|
|
9c6c51 |
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
|
|
|
9c6c51 |
--
|
|
|
9c6c51 |
2.20.1
|
|
|
9c6c51 |
|