| Index: utils/tests/pub/test_pub.dart
|
| diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart
|
| index 87053b9a3f1b4ae0e6e09a2e6c44b570b8d27f5b..d9fd91ba66e00bc9dab982d2b037bced3a62e5f3 100644
|
| --- a/utils/tests/pub/test_pub.dart
|
| +++ b/utils/tests/pub/test_pub.dart
|
| @@ -29,6 +29,16 @@ import '../../pub/system_cache.dart';
|
| import '../../pub/utils.dart';
|
| import '../../pub/validator.dart';
|
| import '../../pub/yaml/yaml.dart';
|
| +import 'command_line_config.dart';
|
| +
|
| +/// This should be called at the top of a test file to set up an appropriate
|
| +/// 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')) {
|
| + configure(new CommandLineConfiguration());
|
| + }
|
| +}
|
|
|
| /// Creates a new [FileDescriptor] with [name] and [contents].
|
| FileDescriptor file(Pattern name, String contents) =>
|
| @@ -447,7 +457,6 @@ final _TIMEOUT = 30000;
|
| /// once per test case.
|
| void run() {
|
| var createdSandboxDir;
|
| -
|
| var asyncDone = expectAsync0(() {});
|
|
|
| Future cleanup() {
|
|
|