From ba61355e5311114365236e305fe75dd3c78297e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Thu, 24 Jun 2021 13:45:14 +0200 Subject: [PATCH] skip cleanup in CI to save time MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- packages/e2e-test/src/commands/run.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/e2e-test/src/commands/run.ts b/packages/e2e-test/src/commands/run.ts index ef4670e2ce..c205b4f527 100644 --- a/packages/e2e-test/src/commands/run.ts +++ b/packages/e2e-test/src/commands/run.ts @@ -72,8 +72,14 @@ export async function run() { print('Testing the backend startup'); await testBackendStart(appDir, isPostgres); - print('All tests successful, removing test dir'); - await fs.remove(rootDir); + if (process.env.CI) { + // Cleanup actually takes significant time, so skip it in CI since the + // runner will be destroyed anyway + print('All tests successful'); + } else { + print('All tests successful, removing test dir'); + await fs.remove(rootDir); + } // Just in case some child process was left hanging process.exit(0);