mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 22:00:09 +00:00
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:
parent
142e15c2af
commit
03483c1dab
|
@ -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' ||
|
||||
|
|
Loading…
Reference in a new issue