| Index: sdk/lib/_internal/pub/test/lish/server_arg_overrides_publish_to_url_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_overrides_publish_to_url_test.dart
|
| similarity index 51%
|
| 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_overrides_publish_to_url_test.dart
|
| index 42f79431d630a6b1ac02ab1945d9c6988860acef..5c04d664f5320f3bb94243e4b2c3c95f03613eae 100644
|
| --- a/sdk/lib/_internal/pub/test/barback/fails_if_args_with_all_test.dart
|
| +++ b/sdk/lib/_internal/pub/test/lish/server_arg_overrides_publish_to_url_test.dart
|
| @@ -4,20 +4,17 @@
|
|
|
| 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 overrides a "publishTo" url', () {
|
| + var pkg = packageMap("test_pkg", "1.0.0");
|
| + pkg["publishTo"] = "http://pubspec.com";
|
| + d.dir(appPath, [d.pubspec(pkg)]).create();
|
|
|
| - setUp(() {
|
| - d.appDir().create();
|
| + schedulePub(args: ["lish", "--dry-run", "--server", "http://arg.com"],
|
| + output: contains("http://arg.com"));
|
| });
|
| -
|
| - 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);
|
| }
|
|
|