mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 07:15:54 +01:00
smoke test tweaks
- remove timeout on shutdown - log exactly where time is spend on shutdown (web) - stop spawning code when terminated
This commit is contained in:
@@ -29,7 +29,15 @@ export interface SpawnOptions {
|
||||
browser?: 'chromium' | 'webkit' | 'firefox';
|
||||
}
|
||||
|
||||
let stopped = false;
|
||||
process.on('exit', () => stopped = true);
|
||||
process.on('SIGINT', () => stopped = true);
|
||||
process.on('SIGTERM', () => stopped = true);
|
||||
|
||||
export async function spawn(options: SpawnOptions): Promise<Code> {
|
||||
if (stopped) {
|
||||
throw new Error('Smoke test process has terminated, refusing to spawn Code');
|
||||
}
|
||||
|
||||
await copyExtension(repoPath, options.extensionsPath, 'vscode-notebook-tests');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user