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

Unified Diff: dart/tests/standalone/vmservice/test_helper.dart

Issue 239303004: Extract common code, add host IP to --debug and --enable-vm-service options (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebased Created 6 years, 8 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 | « dart/runtime/bin/vmservice_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/standalone/vmservice/test_helper.dart
diff --git a/dart/tests/standalone/vmservice/test_helper.dart b/dart/tests/standalone/vmservice/test_helper.dart
index 310d2afda24437261a61dc7f221c42dfea8da155..d7c580ec05e4d0f11a998f68117119d3a8eadf15 100644
--- a/dart/tests/standalone/vmservice/test_helper.dart
+++ b/dart/tests/standalone/vmservice/test_helper.dart
@@ -140,9 +140,9 @@ class TestLauncher {
var first = true;
process.stdout.transform(UTF8.decoder)
.transform(new LineSplitter()).listen((line) {
- if (line.startsWith('VMService listening on port ')) {
- RegExp portExp = new RegExp(r"\d+");
- var port = portExp.stringMatch(line);
+ if (line.startsWith('VMService listening on ')) {
+ RegExp portExp = new RegExp(r"\d+.\d+.\d+.\d+:(\d+)");
+ var port = portExp.firstMatch(line).group(1);
portNumber = int.parse(port);
}
if (line == '') {
« no previous file with comments | « dart/runtime/bin/vmservice_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698