fixup! Remove cache dirs from commonlib testing.

This commit is contained in:
John Eskew
2017-09-29 14:36:58 -04:00
parent 5d1363b428
commit de887b0dd1
2 changed files with 4 additions and 3 deletions

View File

@@ -200,11 +200,12 @@ class Env(object):
JS_REPORT_DIR = REPORT_DIR / 'javascript'
# Directories used for common/lib/ tests
# Directories used for common/lib/tests
IGNORED_TEST_DIRS = ('__pycache__', '.cache')
LIB_TEST_DIRS = []
for item in (REPO_ROOT / "common/lib").listdir():
dir_name = (REPO_ROOT / 'common/lib' / item)
if dir_name.isdir() and not dir_name.endswith(('__pycache__', '.cache')):
if dir_name.isdir() and not dir_name.endswith(IGNORED_TEST_DIRS):
LIB_TEST_DIRS.append(path("common/lib") / item.basename())
LIB_TEST_DIRS.append(path("pavelib/paver_tests"))

View File

@@ -191,7 +191,7 @@ class SystemTestSuite(PytestSuite):
"""
Should this path be included in the pytest arguments?
"""
if path.endswith('__pycache__'):
if path.endswith(Env.IGNORED_TEST_DIRS):
return False
return path.endswith('.py') or os.path.isdir(path)