From dc7bd3dbbfb760dd4bc01d230764ce75f65160b1 Mon Sep 17 00:00:00 2001 From: John Eskew Date: Mon, 18 Sep 2017 15:13:04 -0400 Subject: [PATCH] Remove cache dirs from commonlib testing. --- pavelib/utils/envs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pavelib/utils/envs.py b/pavelib/utils/envs.py index 99d9b1e48b..739f846a9c 100644 --- a/pavelib/utils/envs.py +++ b/pavelib/utils/envs.py @@ -203,7 +203,8 @@ class Env(object): # Directories used for common/lib/ tests LIB_TEST_DIRS = [] for item in (REPO_ROOT / "common/lib").listdir(): - if (REPO_ROOT / 'common/lib' / item).isdir(): + dir_name = (REPO_ROOT / 'common/lib' / item) + if dir_name.isdir() and not dir_name.endswith(('__pycache__', '.cache')): LIB_TEST_DIRS.append(path("common/lib") / item.basename()) LIB_TEST_DIRS.append(path("pavelib/paver_tests"))