Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Unified Diff: test/lish/uses_publish_to_url_test.dart

Issue 1172803002: Emit a failing error code for failing validation. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/lish/server_arg_overrides_publish_to_url_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/lish/uses_publish_to_url_test.dart
diff --git a/test/lish/uses_publish_to_url_test.dart b/test/lish/uses_publish_to_url_test.dart
index 4d6d1e754d30bcc09a88904ca1da7976c1c0a387..6484e0360b1c5e53a9e3a02136e4e8287e90dc76 100644
--- a/test/lish/uses_publish_to_url_test.dart
+++ b/test/lish/uses_publish_to_url_test.dart
@@ -2,6 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+import 'package:pub/src/exit_codes.dart' as exit_codes;
import 'package:scheduled_test/scheduled_test.dart';
import '../descriptor.dart' as d;
@@ -9,12 +10,13 @@ import '../test_pub.dart';
main() {
initConfig();
- integration('preview shows an error if the package is private', () {
+ integration('uses the publish_to URL', () {
var pkg = packageMap("test_pkg", "1.0.0");
pkg["publish_to"] = "http://example.com";
d.dir(appPath, [d.pubspec(pkg)]).create();
schedulePub(args: ["lish", "--dry-run"],
- output: contains("Publishing test_pkg 1.0.0 to http://example.com"));
+ output: contains("Publishing test_pkg 1.0.0 to http://example.com"),
+ exitCode: exit_codes.DATA);
});
}
« no previous file with comments | « test/lish/server_arg_overrides_publish_to_url_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698