| Index: sdk/lib/_internal/pub/test/lish/server_arg_does_not_override_private_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/barback/fails_if_args_with_all_test.dart b/sdk/lib/_internal/pub/test/lish/server_arg_does_not_override_private_test.dart
|
| similarity index 53%
|
| copy from sdk/lib/_internal/pub/test/barback/fails_if_args_with_all_test.dart
|
| copy to sdk/lib/_internal/pub/test/lish/server_arg_does_not_override_private_test.dart
|
| index 42f79431d630a6b1ac02ab1945d9c6988860acef..d3a5667405c181c25c70fb62837f01f8d12aadc8 100644
|
| --- a/sdk/lib/_internal/pub/test/barback/fails_if_args_with_all_test.dart
|
| +++ b/sdk/lib/_internal/pub/test/lish/server_arg_does_not_override_private_test.dart
|
| @@ -7,17 +7,16 @@ import 'package:scheduled_test/scheduled_test.dart';
|
| import '../../lib/src/exit_codes.dart' as exit_codes;
|
| import '../descriptor.dart' as d;
|
| import '../test_pub.dart';
|
| -import 'utils.dart';
|
|
|
| main() {
|
| initConfig();
|
| + integration('an explicit --server argument does not override privacy', () {
|
| + var pkg = packageMap("test_pkg", "1.0.0");
|
| + pkg["publishTo"] = "none";
|
| + d.dir(appPath, [d.pubspec(pkg)]).create();
|
|
|
| - setUp(() {
|
| - d.appDir().create();
|
| + schedulePub(args: ["lish", "--server", "http://arg.com"],
|
| + error: startsWith("A private package cannot be published."),
|
| + exitCode: exit_codes.DATA);
|
| });
|
| -
|
| - pubBuildAndServeShouldFail("if a directory is passed with --all",
|
| - args: ["example", "--all"],
|
| - error: 'Directory names are not allowed if "--all" is passed.',
|
| - exitCode: exit_codes.USAGE);
|
| }
|
|
|