Change support for VM service message from "Dart VM Service listening" to "The Dart VM Service is listening" (flutter/engine#31310)

See https://github.com/dart-lang/sdk/issues/46756
This commit is contained in:
Ben Konyi 2022-02-07 13:55:22 -08:00 committed by GitHub
parent 4b2d1fa06b
commit 34d2ccff68
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ class ShellProcess {
Uri? _extractVMServiceUri(String str) {
final listeningMessageRegExp = RegExp(
r'(?:Observatory|Dart VM Service) 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 listening' in line):
if ('Observatory listening' in line) or ('Dart VM Service is listening' in line):
logcat.kill()
break