commit | 2ef0ee4be61946a9fa92925b9148d7a6e9196478 | [log] [tgz] |
---|---|---|
author | Daco Harkes <dacoharkes@google.com> | Fri Feb 03 11:03:16 2023 +0000 |
committer | Commit Queue <dart-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Feb 03 11:03:16 2023 +0000 |
tree | c02bc094dcb9fb940aae474dda3665e90546a40d | |
parent | 809ae4cc1d887fd5961f82c635168afad5f1c4c6 [diff] |
[tools] test.py support Android devices with `.` in name Closes: https://github.com/dart-lang/sdk/issues/51243 Change-Id: Ia165c6ecdc4d4ed6ad2799ae75a8ea68b0110757 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/280641 Commit-Queue: Alexander Thomas <athom@google.com> Reviewed-by: Alexander Thomas <athom@google.com> Auto-Submit: Daco Harkes <dacoharkes@google.com>
diff --git a/pkg/test_runner/lib/src/android.dart b/pkg/test_runner/lib/src/android.dart index f7ca3bd..a4840cd 100644 --- a/pkg/test_runner/lib/src/android.dart +++ b/pkg/test_runner/lib/src/android.dart
@@ -341,7 +341,7 @@ /// Helper to list all adb devices available. class AdbHelper { static final RegExp _deviceLineRegexp = - RegExp(r'^([a-zA-Z0-9:_-]+)[ \t]+device$', multiLine: true); + RegExp(r'^(([a-zA-Z0-9:_-]|\.)+)[ \t]+device$', multiLine: true); static Future<List<String>> listDevices() { return Process.run('adb', ['devices']).then((ProcessResult result) {