fixup! Remove cache dirs from commonlib testing.
This commit is contained in:
@@ -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"))
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user