forked from firka/flutter
Change support for VM service message from "The Dart VM Service is listening" to "The Dart VM service is listening" (flutter/engine#31361)
See https://github.com/dart-lang/sdk/issues/46756
This commit is contained in:
@@ -41,7 +41,7 @@ void VMServiceObject::GetContents(LazyEntryVector* out_vector) const {
|
||||
std::vector<std::string> files;
|
||||
if (!ReadDirContents(kPortDir, &files)) {
|
||||
FX_LOGF(ERROR, LOG_TAG,
|
||||
"Failed to read Dart VM Service port directory '%s': %s", kPortDir,
|
||||
"Failed to read Dart VM service port directory '%s': %s", kPortDir,
|
||||
strerror(errno));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ class ShellProcess {
|
||||
|
||||
Uri? _extractVMServiceUri(String str) {
|
||||
final listeningMessageRegExp = RegExp(
|
||||
r'(?:Observatory|The Dart VM Service is) listening on ((http|//)[a-zA-Z0-9:/=_\-\.\[\]]+)',
|
||||
r'(?:Observatory|The Dart VM service is) listening on ((http|//)[a-zA-Z0-9:/=_\-\.\[\]]+)',
|
||||
);
|
||||
final match = listeningMessageRegExp.firstMatch(str);
|
||||
if (match != null) {
|
||||
|
||||
@@ -61,7 +61,7 @@ def LaunchPackage(package_name, activity_name, adb_path='adb'):
|
||||
'%s/%s' % (package_name, activity_name)], stderr=subprocess.STDOUT)
|
||||
for line in logcat.stdout:
|
||||
print('>>>>>>>> ' + line.strip())
|
||||
if ('Observatory listening' in line) or ('Dart VM Service is listening' in line):
|
||||
if ('Observatory listening' in line) or ('Dart VM service is listening' in line):
|
||||
logcat.kill()
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user