Add --device-id option for devicelab/bin/run.dart (#59276)

* Implement device selection for devicelab/run.dart

* Add test to --device-id option for devicelab/run

* Update dev/devicelab/bin/run.dart by jonahwilliam

* Rename deviceOperatingSystem enum mock -> fake

Co-authored-by: Jonah Williams <jonahwilliams@google.com>
This commit is contained in:
Ming Lyu (CareF)
2020-06-26 09:29:46 -04:00
committed by GitHub
parent 0412c470ef
commit 99f5eebc6b
6 changed files with 271 additions and 11 deletions

View File

@@ -657,6 +657,8 @@ class CompileTest {
break;
case DeviceOperatingSystem.fuchsia:
throw Exception('Unsupported option for Fuchsia devices');
case DeviceOperatingSystem.fake:
throw Exception('Unsupported option for fake devices');
}
metrics.addAll(<String, dynamic>{
@@ -681,6 +683,8 @@ class CompileTest {
break;
case DeviceOperatingSystem.fuchsia:
throw Exception('Unsupported option for Fuchsia devices');
case DeviceOperatingSystem.fake:
throw Exception('Unsupported option for fake devices');
}
watch.start();
await flutter('build', options: options);