fix(e2e): Use rmSync instead of rm -rf for e2e tests (#11087)

This commit is contained in:
Abhi
2025-10-14 11:56:56 -04:00
committed by GitHub
parent 9e8c767694
commit 7b06a0bebd
+1 -1
View File
@@ -512,7 +512,7 @@ export class TestRig {
// Clean up test directory // Clean up test directory
if (this.testDir && !env['KEEP_OUTPUT']) { if (this.testDir && !env['KEEP_OUTPUT']) {
try { try {
execSync(`rm -rf ${this.testDir}`); fs.rmSync(this.testDir, { recursive: true, force: true });
} catch (error) { } catch (error) {
// Ignore cleanup errors // Ignore cleanup errors
if (env['VERBOSE'] === 'true') { if (env['VERBOSE'] === 'true') {