Update the isRunningOnBot() check in telemetry.dart for Travis, check for env.containsKey('BOT'), instead of env['BOT'] == true

This should fix bot failures such as https://travis-ci.org/github/flutter/devtools/builds/700932057

Change-Id: Ie65455d3f7de825f6691669174ec05f8bac6925e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/152020
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Jaime Wren <jwren@google.com>
This commit is contained in:
Jaime Wren 2020-06-22 20:49:46 +00:00 committed by commit-bot@chromium.org
parent 142e15c2af
commit 03483c1dab

View file

@ -179,8 +179,9 @@ bool isRunningOnBot() {
return false;
}
return env['BOT'] == 'true'
// https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables
return env.containsKey('BOT')
// https://docs.travis-ci.com/user/environment-variables/
// Example .travis.yml file: https://github.com/flutter/devtools/blob/master/.travis.yml
||
env['TRAVIS'] == 'true' ||
env['CONTINUOUS_INTEGRATION'] == 'true' ||