| Index: test/test_pub.dart
|
| diff --git a/test/test_pub.dart b/test/test_pub.dart
|
| index 8dcebc7940d8251bd0dab66d071ee4936da139d5..86376eafb1ba80e3a73f529d41504c4444e9bb97 100644
|
| --- a/test/test_pub.dart
|
| +++ b/test/test_pub.dart
|
| @@ -354,11 +354,19 @@ void pubDowngrade({Iterable<String> args, output, error, warning,
|
| /// "pub run".
|
| ///
|
| /// Returns the `pub run` process.
|
| -ScheduledProcess pubRun({bool global: false, Iterable<String> args}) {
|
| +ScheduledProcess pubRun({bool shouldGetFirst: false, bool global: false,
|
| + Iterable<String> args}) {
|
| var pubArgs = global ? ["global", "run"] : ["run"];
|
| pubArgs.addAll(args);
|
| var pub = startPub(args: pubArgs);
|
|
|
| + if (shouldGetFirst) {
|
| + pub.stdout.expect(consumeThrough(anyOf([
|
| + "Got dependencies!",
|
| + matches(new RegExp(r"^Changed \d+ dependenc"))
|
| + ])));
|
| + }
|
| +
|
| // Loading sources and transformers isn't normally printed, but the pub test
|
| // infrastructure runs pub in verbose mode, which enables this.
|
| pub.stdout.expect(consumeWhile(startsWith("Loading")));
|
|
|