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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user