From ce9f7a287a158527722b76522ac5d334c3f23db3 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Wed, 29 May 2024 11:48:14 -0700 Subject: [PATCH] CLI-1336: Isolate cache dir per test (#1747) --- src/Kernel.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Kernel.php b/src/Kernel.php index c14ae01c8..88b6705f4 100644 --- a/src/Kernel.php +++ b/src/Kernel.php @@ -37,6 +37,12 @@ public function registerContainerConfiguration(LoaderInterface $loader): void { $this->registerExtensionConfiguration($loader); } + /** @infection-ignore-all */ + public function getCacheDir(): string { + $testToken = getenv('TEST_TOKEN') ?? ''; + return parent::getCacheDir() . $testToken; + } + protected function registerExtensionConfiguration(mixed $loader): void { // Search for plugins. $finder = new Finder();