From 71b0e7ab0d30cb63d5480837fd3f601498c847f2 Mon Sep 17 00:00:00 2001 From: Tommaso Sciortino Date: Tue, 2 Dec 2025 10:25:22 -0800 Subject: [PATCH] Don't fail test if we can't cleanup (#14389) --- integration-tests/globalSetup.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/integration-tests/globalSetup.ts b/integration-tests/globalSetup.ts index 503e528c47..18b9d62e87 100644 --- a/integration-tests/globalSetup.ts +++ b/integration-tests/globalSetup.ts @@ -74,6 +74,10 @@ export async function setup() { export async function teardown() { // Cleanup the test run directory unless KEEP_OUTPUT is set if (process.env['KEEP_OUTPUT'] !== 'true' && runDir) { - await rm(runDir, { recursive: true, force: true }); + try { + await rm(runDir, { recursive: true, force: true }); + } catch (e) { + console.warn('Failed to clean up test run directory:', e); + } } }