Merge pull request #575 from grooverdan/no-dot-filters

ENH: dont run samples on filter filenames beginning with .
pull/579/head
Steven Hiscocks 2014-01-09 14:49:47 -08:00
commit 62cfad3c2d
1 changed files with 5 additions and 4 deletions

View File

@ -151,7 +151,8 @@ def testSampleRegexsFactory(name):
for filter_ in filter(lambda x: not x.endswith('common.conf'), os.listdir(os.path.join(CONFIG_DIR, "filter.d"))):
filterName = filter_.rpartition(".")[0]
setattr(
FilterSamplesRegex,
"testSampleRegexs%s" % filterName.upper(),
testSampleRegexsFactory(filterName))
if not filterName.startswith('.'):
setattr(
FilterSamplesRegex,
"testSampleRegexs%s" % filterName.upper(),
testSampleRegexsFactory(filterName))