diff options
author | Daniel Veillard <veillard@redhat.com> | 2006-02-20 20:50:48 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2006-02-20 20:50:48 +0000 |
commit | 6ca66f6ed0866d0db5caf7478c7cadada1761262 (patch) | |
tree | 9236dcc10170ec276ea19e39c7eac994099107dd /tests/create.py | |
parent | 45d8ba76e463f55f32cf13f1c11aee136e54281e (diff) | |
download | libvirt-python-v6-6ca66f6ed0866d0db5caf7478c7cadada1761262.tar.gz libvirt-python-v6-6ca66f6ed0866d0db5caf7478c7cadada1761262.tar.xz libvirt-python-v6-6ca66f6ed0866d0db5caf7478c7cadada1761262.zip |
* docs/examples/examples.xsl docs/examples/index.html
docs/site.xsl: integates the examples page in the web site
* docs//* : fixed generator and rebuilt the docs
* python/tests/basic.py python/tests/create.py: couple cleanups
Daniel
Diffstat (limited to 'tests/create.py')
-rwxr-xr-x | tests/create.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/create.py b/tests/create.py index 6ef415a..d2823c8 100755 --- a/tests/create.py +++ b/tests/create.py @@ -4,6 +4,10 @@ import sys import os import time +if not os.access("/proc/xen", os.R_OK): + print 'System is not running a Xen kernel' + sys.exit(1) + # # Try to provide default OS images paths here, of course non standard # @@ -23,10 +27,6 @@ if osroot == None: print "Could not find a guest OS root, edit to add the path in osroots" sys.exit(1) -if not os.access("/proc/xen", os.R_OK): - print 'System is not running a Xen kernel' - sys.exit(1) - kernel=open("/proc/version").read().split() kernelOv = kernel[2] kernelU = "/boot/vmlinuz-" + kernelOv.replace('hypervisor', 'guest') |