Signed-off-by: Gerd Hoffmann <[email protected]>
---
client/virt/tests/unattended_install.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/client/virt/tests/unattended_install.py
b/client/virt/tests/unattended_install.py
index f8f680d..ea8a7c6 100644
--- a/client/virt/tests/unattended_install.py
+++ b/client/virt/tests/unattended_install.py
@@ -866,6 +866,8 @@ class UnattendedInstallConfig(object):
# it's only necessary to download kernel/initrd if running bare qemu
if self.vm_type == 'kvm':
error.context("downloading vmlinuz/initrd.img from %s" % self.url)
+ if not os.path.exists(self.image_path):
+ os.mkdir(self.image_path)
os.chdir(self.image_path)
kernel_cmd = "wget -q %s/%s/%s" % (self.url,
self.boot_path,
--
1.7.1
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest