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:
Ben Konyi
2022-02-10 09:45:28 -08:00
committed by GitHub
parent 367cff931a
commit 56afd34216
3 changed files with 3 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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) {

View File

@@ -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