@@ -243,22 +243,22 @@ export class PluginHostMain {
}
// after tests have run, we shutdown the host
this.gracefulExit();
this.gracefulExit(failures&&failures>0?1/* ERROR */:0/* OK */);
});
});
}
// Otherwise make sure to shutdown anyway even in case of an error
else{
this.gracefulExit();
this.gracefulExit(1/* ERROR */);
}
returnTPromise.wrapError<void>(requireError?requireError.toString():nls.localize('pluginTestError',"Path {0} does not point to a valid extension test runner.",env.pluginTestsPath));
}
privategracefulExit():void{
privategracefulExit(code:number):void{
// to give the PH process a chance to flush any outstanding console
// messages to the main process, we delay the exit() by some time