Disable telemetry in smoke tests using an env arg

This commit is contained in:
Sandeep Somavarapu
2017-10-04 12:41:27 +02:00
parent 34b4fb6b8b
commit 583e903669
8 changed files with 13 additions and 7 deletions

View File

@@ -181,7 +181,7 @@ export function main(argv: ParsedArgs): TPromise<void> {
services.set(IExtensionGalleryService, new SyncDescriptor(ExtensionGalleryService));
services.set(IChoiceService, new SyncDescriptor(ChoiceCliService));
if (isBuilt && !extensionDevelopmentPath && product.enableTelemetry) {
if (isBuilt && !extensionDevelopmentPath && !envService.args['disable-telemetry'] && product.enableTelemetry) {
const appenders: AppInsightsAppender[] = [];
if (product.aiConfig && product.aiConfig.asimovKey) {