aboutsummaryrefslogtreecommitdiffstats
path: root/tests/commons.py
diff options
context:
space:
mode:
authorastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-03-31 19:39:43 +0000
committerastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-03-31 19:39:43 +0000
commit706105a0d834e474a0629ff81b79e6d61db59640 (patch)
treea7b38644c0c46c9a1dab9b086573e73fd61ddc7f /tests/commons.py
parent12f4bcdeec1a108be40936e4afb26d30119288ee (diff)
downloadsos-706105a0d834e474a0629ff81b79e6d61db59640.tar.gz
remove old unittests
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@906 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'tests/commons.py')
-rw-r--r--tests/commons.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/commons.py b/tests/commons.py
deleted file mode 100644
index de2906fd..00000000
--- a/tests/commons.py
+++ /dev/null
@@ -1,32 +0,0 @@
-# commons.py
-import sys, os
-
-commons = {}
-commons['bin'] = '/usr/sbin/sosreport'
-commons['fnameRe'] = '/tmp/sosreport-*.xz'
-commons['testName'] = 'tester'
-commons['testID'] = 1
-commons['batch'] = True
-commons['i18n'] = 'en_US.UTF-8'
-commons['pluginpath'] = None
-commons['plugins'] = []
-commons['testOptions'] = ['--build','--batch']
-if os.path.isfile('/etc/fedora-release'):
- commons['distro'] = 'Fedora'
-else:
- commons['distro'] = 'RHEL'
-
-paths = sys.path
-for path in paths:
- if path.strip()[-len("site-packages"):] == "site-packages" \
- and os.path.isdir(path + "/sos/plugins"):
- commons['pluginpath'] = path + "/sos/plugins"
-
-for plugin in os.listdir(commons['pluginpath']):
- plugbase = plugin[:-3]
- if not plugin[-3:] == '.py' or plugbase == "__init__":
- continue
- commons['plugins'].append(plugbase)
-
-def desc(txt):
- sys.stdout.write(txt)