[flutter_tool] Disable analytics on more bots (#50669)

This commit is contained in:
Zachary Anderson
2020-02-13 09:58:03 -08:00
committed by GitHub
parent 232063e5c3
commit 450fc25c1e
2 changed files with 10 additions and 0 deletions

View File

@@ -66,6 +66,11 @@ class BotDetector {
|| _platform.environment['CHROME_HEADLESS'] == '1'
|| _platform.environment.containsKey('BUILDBOT_BUILDERNAME')
|| _platform.environment.containsKey('SWARMING_TASK_ID')
// Property when running on borg.
|| _platform.environment.containsKey('BORG_ALLOC_DIR')
// Property when running on Azure.
|| await _azureDetector.isRunningOnAzure;
}
}