diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/create.py | 9 |
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) |