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

Unified Diff: utils/tests/pub/pub_update_test.dart

Issue 10911085: Emit a non-zero exit code when Pub fails. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
« utils/pub/pub.dart ('K') | « utils/tests/pub/pub_install_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/pub_update_test.dart
diff --git a/utils/tests/pub/pub_update_test.dart b/utils/tests/pub/pub_update_test.dart
index 27b2e70ec95abc902c16734c275f8a4989abce89..c298bba274f79c246f005225aff872f6823f1b2f 100644
--- a/utils/tests/pub/pub_update_test.dart
+++ b/utils/tests/pub/pub_update_test.dart
@@ -15,7 +15,8 @@ main() {
dir(appPath, []).scheduleCreate();
schedulePub(args: ['update'],
- error: const RegExp(@'^Could not find a file named "pubspec.yaml"'));
+ error: const RegExp(@'^Could not find a file named "pubspec.yaml"'),
+ exitCode: 1);
run();
});
@@ -27,7 +28,8 @@ main() {
schedulePub(args: ['update'],
error: const RegExp(@'^"pubspec.yaml" is missing the required "name" '
- @'field \(e\.g\. "name: myapp"\)\.'));
+ @'field \(e\.g\. "name: myapp"\)\.'),
+ exitCode: 1);
run();
});
« utils/pub/pub.dart ('K') | « utils/tests/pub/pub_install_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698