[PATCH 1/5] KVM test: Fix incorrect CdromDisk instantiation when distro is OpenSUSE

Lucas Meneghel Rodrigues
2011-04-18T22:40:41Z

We need to pass an additional tmpdir param to the class initialization.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
---
client/tests/kvm/tests/unattended_install.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/client/tests/kvm/tests/unattended_install.py b/client/tests/kvm/tests/unattended_install.py
index c7e19da..2d58cf2 100644
--- a/client/tests/kvm/tests/unattended_install.py
+++ b/client/tests/kvm/tests/unattended_install.py
@@ -376,7 +376,7 @@ class UnattendedInstallConfig(object):
# SUSE autoyast install
dest_fname = "autoinst.xml"
if self.cdrom_unattended:
- boot_disk = CdromDisk(self.cdrom_unattended)
+ boot_disk = CdromDisk(self.cdrom_unattended, self.tmpdir)
elif self.floppy:
boot_disk = FloppyDisk(self.floppy, self.qemu_img_binary,
self.tmpdir)
--
1.7.4.4