From 09a4f044c930a3bebbf9b7b282c002dc6356131b Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Tue, 30 Jul 2013 11:24:22 +0100 Subject: Delete obsolete / unused python test files 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 (cherry picked from commit 5bb2a245abbde4c0a407f631660e2f2c81bc4c02) --- tests/node.py | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100755 tests/node.py (limited to 'tests/node.py') diff --git a/tests/node.py b/tests/node.py deleted file mode 100755 index f199fc3..0000000 --- a/tests/node.py +++ /dev/null @@ -1,34 +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) - -try: - (model, memory, cpus, mhz, nodes, socket, cores, threads) = conn.getInfo() -except: - print 'Failed to extract the current node information' - sys.exit(1) - -print "Xen running on %d %s processors at %d MHz, %d MBytes of memory" % ( - cpus, model, mhz, memory) - -if cpus > nodes * socket * cores * threads: - print "Erroneous CPU information" - sys.exit(1) - -if cpus < nodes * socket * cores * threads: - print "Strange, running in degrated mode, some CPU are not available" - -del conn -print "OK" - -sys.exit(0) -- cgit