| Index: utils/tests/pub/test_pub.dart
|
| diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart
|
| index 83e2dee339cf75d51c3a6bb3930d3fe1f6524ce0..c0efd304ad0260c7012774ff3c323d0fa775d5b3 100644
|
| --- a/utils/tests/pub/test_pub.dart
|
| +++ b/utils/tests/pub/test_pub.dart
|
| @@ -45,11 +45,15 @@ import 'descriptor.dart' as d;
|
| /// test configuration for the machine running the tests.
|
| initConfig() {
|
| // If we aren't running on the bots, use the human-friendly config.
|
| - if (new Options().arguments.contains('--human')) {
|
| + if (!runningOnBuildbot) {
|
| unittestConfiguration = new CommandLineConfiguration();
|
| }
|
| }
|
|
|
| +/// Returns whether we're running on a Dart build bot.
|
| +bool runningOnBuildbot =>
|
| + Platform.environment.containsKey('BUILDBOT_BUILDERNAME');
|
| +
|
| /// The current [HttpServer] created using [serve].
|
| var _server;
|
|
|
| @@ -399,7 +403,7 @@ void ensureGit() {
|
| schedule(() {
|
| return gitlib.isInstalled.then((installed) {
|
| if (installed) return;
|
| - if (Platform.environment.containsKey('BUILDBOT_BUILDERNAME')) return;
|
| + if (runningOnBuildbot) return;
|
| currentSchedule.abort();
|
| });
|
| }, 'ensuring that Git is installed');
|
|
|