summaryrefslogtreecommitdiff
path: root/site_scons
diff options
context:
space:
mode:
authorDaniel Moody <daniel.moody@mongodb.com>2021-04-21 16:43:01 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-04-22 16:38:41 +0000
commit44e6740a3fcb12a4ebd097c03b62e89eb76fdb61 (patch)
tree94d94248296b1084755036b6bb9f0989d9d7b898 /site_scons
parent574020b00707ee1e604465d60b239fa0a6662681 (diff)
downloadmongo-44e6740a3fcb12a4ebd097c03b62e89eb76fdb61.tar.gz
SERVER-54732 fixed validate cachedir debug type issue and turn on globally.
Diffstat (limited to 'site_scons')
-rw-r--r--site_scons/site_tools/validate_cache_dir.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/site_scons/site_tools/validate_cache_dir.py b/site_scons/site_tools/validate_cache_dir.py
index 27b98cc75a9..87ecfbec828 100644
--- a/site_scons/site_tools/validate_cache_dir.py
+++ b/site_scons/site_tools/validate_cache_dir.py
@@ -134,7 +134,14 @@ class CacheDirValidate(SCons.CacheDir.CacheDir):
return False
def CacheDebug(self, fmt, target, cachefile):
- super().CacheDebug(fmt, target, cachefile + self.get_ext())
+ # The target cachefile will live in a directory with the special
+ # extension for this cachedir class. Check if this cachefile is
+ # in a directory like that and customize the debug logs.
+ cksum_cachefile = str(pathlib.Path(cachefile).parent)
+ if cksum_cachefile.endswith(self.get_ext()):
+ super().CacheDebug(fmt, target, cksum_cachefile)
+ else:
+ super().CacheDebug(fmt, target, cachefile)
def print_cache_issue(self, node, msg):