summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2006-03-22 13:33:20 +0000
committerDaniel Veillard <veillard@redhat.com>2006-03-22 13:33:20 +0000
commit889ff0890ec355f0aaccda642ee2d84268e01976 (patch)
tree1010e34ee28ad772a1f54712c29e3a97e6475d99 /tests
parent0ea9f8be426567597098536ba06dddd3c5d920ba (diff)
downloadlibvirt-python-v6-889ff0890ec355f0aaccda642ee2d84268e01976.tar.gz
libvirt-python-v6-889ff0890ec355f0aaccda642ee2d84268e01976.tar.xz
libvirt-python-v6-889ff0890ec355f0aaccda642ee2d84268e01976.zip
* python/tests/create.py: adapt to new naming scheme in FC5
Daniel
Diffstat (limited to 'tests')
-rwxr-xr-xtests/create.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/create.py b/tests/create.py
index d2823c8..da438c9 100755
--- a/tests/create.py
+++ b/tests/create.py
@@ -29,8 +29,13 @@ if osroot == None:
kernel=open("/proc/version").read().split()
kernelOv = kernel[2]
-kernelU = "/boot/vmlinuz-" + kernelOv.replace('hypervisor', 'guest')
-initrdU = "/boot/initrd-" + kernelOv.replace('hypervisor', 'guest') + ".img"
+
+if kernelOv.find('hypervisor'):
+ kernelU = "/boot/vmlinuz-" + kernelOv.replace('hypervisor', 'guest')
+ initrdU = "/boot/initrd-" + kernelOv.replace('hypervisor', 'guest') + ".img"
+elif kernelOv.find('xen0'):
+ kernelU = "/boot/vmlinuz-" + kernelOv.replace('xen0', 'xenU')
+ initrdU = "/boot/initrd-" + kernelOv.replace('xen0', 'xenU') + ".img"
if not os.access(kernelU, os.R_OK):
print "Did not found the guest kernel %s" % (kernelU)