From 76b4c2f2548d3a8ad2315c52ed34602b539756f4 Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Fri, 1 Nov 2024 17:14:17 +0000 Subject: [PATCH] driver.py: Properly detect cfg with ccache (#5579) --- test_regress/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_regress/driver.py b/test_regress/driver.py index e3b233bc3..0a4bc0610 100755 --- a/test_regress/driver.py +++ b/test_regress/driver.py @@ -2412,7 +2412,7 @@ class VlTest: if VlTest._cached_cfg_with_ccache is None: mkf = VlTest._file_contents_static(os.environ['VERILATOR_ROOT'] + "/include/verilated.mk") - VlTest._cached_cfg_with_ccache = bool(re.match(r'OBJCACHE \?= ccache', mkf)) + VlTest._cached_cfg_with_ccache = bool(re.search(r'OBJCACHE \?= ccache', mkf)) return VlTest._cached_cfg_with_ccache def glob_some(self, pattern: str) -> list: