Merge pull request #6194 from backstage/freben/e2e-del

skip cleanup in CI to save time
This commit is contained in:
Patrik Oldsberg
2021-06-24 23:04:51 +02:00
committed by GitHub
+8 -2
View File
@@ -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);