From 3422e6d25ae6de598c40973c6ed5258641bb53b6 Mon Sep 17 00:00:00 2001 From: astokes Date: Fri, 26 Mar 2010 15:05:45 +0000 Subject: build updates git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@870 ef72aa8b-4018-0410-8976-d6e080ef94d8 --- test/commons.py | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 test/commons.py (limited to 'test/commons.py') diff --git a/test/commons.py b/test/commons.py deleted file mode 100644 index de2906fd..00000000 --- a/test/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) -- cgit