diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2013-07-30 11:24:22 +0100 |
---|---|---|
committer | Jiri Denemark <jdenemar@redhat.com> | 2013-08-02 16:31:13 +0200 |
commit | 09a4f044c930a3bebbf9b7b282c002dc6356131b (patch) | |
tree | 1eab834b09f23b70096f4c201ddd82cb82589255 /tests/basic.py | |
parent | 9dd30d27253563852208103dbad1951dde4c0909 (diff) | |
download | libvirt-python-v6-09a4f044c930a3bebbf9b7b282c002dc6356131b.tar.gz libvirt-python-v6-09a4f044c930a3bebbf9b7b282c002dc6356131b.tar.xz libvirt-python-v6-09a4f044c930a3bebbf9b7b282c002dc6356131b.zip |
Delete obsolete / unused python test fileslibvirt-1.1.1-3.el7libvirt-1.1.1-2.el7
https://bugzilla.redhat.com/show_bug.cgi?id=884103
The python/tests directory contains a number of so called
"tests" for the python API. These are all hardcoded to
look for Xen and cannot be run in any automated fashion,
and no one is ever manually running them. Given that they
don't meaningully contribute to the test coverage, delete
them.
For some reason these tests were also copied into the
filesystem as part of 'make install'. The change to the
RPM in commit 3347a4203278ec93d7b0ceb88b5ed10e4f14765c
caused a build failure, since it removed the code which
deleted these installed tests.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
(cherry picked from commit 5bb2a245abbde4c0a407f631660e2f2c81bc4c02)
Diffstat (limited to 'tests/basic.py')
-rwxr-xr-x | tests/basic.py | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/basic.py b/tests/basic.py deleted file mode 100755 index c6dec81..0000000 --- a/tests/basic.py +++ /dev/null @@ -1,31 +0,0 @@ -#!/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: - print 'Failed to open connection to the hypervisor' - sys.exit(1) - -# print conn - -try: - dom0 = conn.lookupByName("Domain-0") -except: - print 'Failed to find the main domain' - sys.exit(1) - -# print dom0 - -print "Domain 0: id %d running %s" % (dom0.ID(), dom0.OSType()) -print dom0.info() -del dom0 -del conn -print "OK" - -sys.exit(0) |