Devicelab android emulator (#113472)

* Testing whether emulator is possible.

* Adding changes to see if emulator can be used from recipe.

* adding emulator support.

* Add the emulator flag for testing.

* Using string for boolean since it cannot be parsed in properties

* Checking to see if these changes are being used.

* Updated bool back to string

* Remove trailing whitespace from file.
This commit is contained in:
Ricardo Amador
2023-01-17 14:01:11 -08:00
committed by GitHub
parent 0449030a96
commit f989d551ce
5 changed files with 28 additions and 0 deletions

View File

@@ -51,6 +51,10 @@ class TestCommand extends Command<void> {
'silent',
help: 'Suppresses standard output and only print standard error output.',
);
argParser.addFlag(
'use-emulator',
help: 'Use an emulator instead of a device to run tests.'
);
}
@override
@@ -74,6 +78,7 @@ class TestCommand extends Command<void> {
luciBuilder: argResults!['luci-builder'] as String?,
resultsPath: argResults!['results-file'] as String?,
silent: (argResults!['silent'] as bool?) ?? false,
useEmulator: (argResults!['use-emulator'] as bool?) ?? false,
taskArgs: taskArgs,
);
}