From 494f1de1db6c29a3f5f6d0e5cabc29b86eaf99e8 Mon Sep 17 00:00:00 2001 From: astokes Date: Wed, 17 Feb 2010 16:27:19 +0000 Subject: -blah git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@777 ef72aa8b-4018-0410-8976-d6e080ef94d8 --- src/tests/commons.py | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 src/tests/commons.py (limited to 'src/tests/commons.py') diff --git a/src/tests/commons.py b/src/tests/commons.py deleted file mode 100644 index fd389dd8..00000000 --- a/src/tests/commons.py +++ /dev/null @@ -1,28 +0,0 @@ -# commons.py -import sys, os - -commons = {} -commons['bin'] = '/usr/sbin/sosreport' -commons['testName'] = 'tester' -commons['testID'] = 1 -commons['batch'] = True -commons['i18n'] = 'en_US.UTF-8' -commons['pluginpath'] = None -commons['plugins'] = [] -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) - -- cgit