| Index: sdk/lib/_internal/pub/test/build/missing_build_directories_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/build/missing_build_directories_test.dart b/sdk/lib/_internal/pub/test/build/missing_build_directories_test.dart
|
| index dc6ec8db1df7b173e8e86df76721d8ad323f41c2..ee64895a0a584a476bfba5cbf06841d8f23cbaf9 100644
|
| --- a/sdk/lib/_internal/pub/test/build/missing_build_directories_test.dart
|
| +++ b/sdk/lib/_internal/pub/test/build/missing_build_directories_test.dart
|
| @@ -24,4 +24,25 @@ main() {
|
| error: 'Directories "benchmark" and "test" do not exist.',
|
| exitCode: exit_codes.DATA);
|
| });
|
| +
|
| + integration("fails if any specified build directories don't exist with JSON "
|
| + "output", () {
|
| + d.dir(appPath, [
|
| + d.appPubspec(),
|
| + d.dir('example', [
|
| + d.file('file.txt', 'example')
|
| + ]),
|
| + d.dir('web', [
|
| + d.file('file.txt', 'test')
|
| + ])
|
| + ]).create();
|
| +
|
| + schedulePub(args: ["build", "benchmark", "example", "test", "web",
|
| + "--format", "json"],
|
| + outputJson: {
|
| + "error": 'Directories "benchmark" and "test" do not exist.'
|
| + },
|
| + exitCode: exit_codes.DATA);
|
| + });
|
| +
|
| }
|
|
|