mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 14:58:16 -05:00
smoke: ctrl-c should kill all processes
This commit is contained in:
@@ -36,7 +36,13 @@ import { setup as setupLaunchTests } from './areas/workbench/launch.test';
|
||||
|
||||
const tmpDir = tmp.dirSync({ prefix: 't' }) as { name: string; removeCallback: Function; };
|
||||
const testDataPath = tmpDir.name;
|
||||
process.once('exit', () => rimraf.sync(testDataPath));
|
||||
process.once('exit', () => {
|
||||
try {
|
||||
rimraf.sync(testDataPath);
|
||||
} catch {
|
||||
// noop
|
||||
}
|
||||
});
|
||||
|
||||
const [, , ...args] = process.argv;
|
||||
const opts = minimist(args, {
|
||||
|
||||
Reference in New Issue
Block a user