summaryrefslogtreecommitdiffstats
path: root/tests/basic.py
diff options
context:
space:
mode:
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: