Commit de887b0d by John Eskew

fixup! Remove cache dirs from commonlib testing.

parent 5d1363b4
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment