In order to support windows install through unattended method
(we need to setup rss.exe on the hosts), add an additional
(and optional) parameter to tests, cdrom_extra, to make
possible to boot a VM with 2 CDs.

Signed-off-by: Lucas Meneghel Rodrigues <[email protected]>
---
 client/tests/kvm/kvm_vm.py |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py
index 7229b79..1dcdcc4 100755
--- a/client/tests/kvm/kvm_vm.py
+++ b/client/tests/kvm/kvm_vm.py
@@ -270,6 +270,14 @@ class VM:
             iso = kvm_utils.get_path(root_dir, iso)
             qemu_cmd += " -cdrom %s" % iso
 
+        # Even though this is not a really scalable approach,
+        # it doesn't seem like we are going to need more than
+        # 2 CDs active on the same VM.
+        iso_extra = params.get("cdrom_extra")
+        if iso_extra:
+            iso_extra = kvm_utils.get_path(root_dir, iso_extra)
+            qemu_cmd += " -cdrom %s" % iso_extra
+
         # We may want to add {floppy_otps} parameter for -fda
         # {fat:floppy:}/path/. However vvfat is not usually recommended
         floppy = params.get("floppy")
-- 
1.6.5.2

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to