summaryrefslogtreecommitdiffstats
path: root/tests/basic.py
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2006-02-20 20:50:48 +0000
committerDaniel Veillard <veillard@redhat.com>2006-02-20 20:50:48 +0000
commit6ca66f6ed0866d0db5caf7478c7cadada1761262 (patch)
tree9236dcc10170ec276ea19e39c7eac994099107dd /tests/basic.py
parent45d8ba76e463f55f32cf13f1c11aee136e54281e (diff)
downloadlibvirt-python-split-6ca66f6ed0866d0db5caf7478c7cadada1761262.tar.gz
libvirt-python-split-6ca66f6ed0866d0db5caf7478c7cadada1761262.tar.xz
libvirt-python-split-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/basic.py')
-rwxr-xr-xtests/basic.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/basic.py b/tests/basic.py
index a4ff4c4..b6f8831 100755
--- a/tests/basic.py
+++ b/tests/basic.py
@@ -1,6 +1,11 @@
#!/usr/bin/python -u
import libvirt
import sys
+import os
+
+if not os.access("/proc/xen", os.R_OK):
+ print 'System is not running a Xen kernel'
+ sys.exit(1)
conn = libvirt.openReadOnly(None)
if conn == None: