| Index: sdk/lib/_internal/pub/test/build/unsupported_build_directories_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/build/unsupported_build_directories_test.dart b/sdk/lib/_internal/pub/test/build/unsupported_build_directories_test.dart
|
| index 7e3c20339a8bdf61235c9f3b910431632ccfac22..73b2b653508e714cd3650383f9655429ee97c3cb 100644
|
| --- a/sdk/lib/_internal/pub/test/build/unsupported_build_directories_test.dart
|
| +++ b/sdk/lib/_internal/pub/test/build/unsupported_build_directories_test.dart
|
| @@ -13,9 +13,33 @@ main() {
|
| d.appDir().create();
|
|
|
| schedulePub(args: ["build", "foo", "bar"],
|
| - error: 'Unsupported build directories "bar" and "foo".\n'
|
| - 'The allowed directories are "benchmark", "bin", "example", '
|
| - '"test" and "web".',
|
| + error: '''
|
| + Unsupported build directories "bar" and "foo".
|
| + The allowed directories are "benchmark", "bin", "example", "test" and "web".
|
| +
|
| + Usage: pub build [options]
|
| + -h, --help Print usage information for this command.
|
| + --format How output should be displayed.
|
| + [text (default), json]
|
| +
|
| + --mode Mode to run transformers in.
|
| + (defaults to "release")
|
| +
|
| + --all Build all buildable directories.''',
|
| + exitCode: exit_codes.USAGE);
|
| + });
|
| +
|
| + integration("fails if given directories are not buildable with json "
|
| + "output", () {
|
| + d.appDir().create();
|
| +
|
| + schedulePub(args: ["build", "foo", "bar", "--format", "json"],
|
| + outputJson: {
|
| + "error":
|
| + 'Unsupported build directories "bar" and "foo".\n'
|
| + 'The allowed directories are "benchmark", "bin", "example", '
|
| + '"test" and "web".'
|
| + },
|
| exitCode: exit_codes.USAGE);
|
| });
|
| }
|
|
|