Update dev/devicelab/** to provide --local-engine-host. (#132342)

Partial work towards https://github.com/flutter/flutter/issues/132245.

I have to admit I don't totally understand what I've updated, or whether
there are more integration points needed.
This commit is contained in:
Matan Lurey
2023-08-10 17:25:30 -07:00
committed by GitHub
parent 978461c54e
commit a7997f606e
11 changed files with 77 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ import 'common.dart';
void main() {
test('ABTest', () {
final ABTest ab = ABTest('engine', 'test');
final ABTest ab = ABTest(localEngine: 'engine', localEngineHost: 'engine', taskName: 'test');
for (int i = 0; i < 5; i++) {
final TaskResult aResult = TaskResult.fromJson(<String, dynamic>{

View File

@@ -96,7 +96,7 @@ void main() {
final ProcessResult result = await runScript(
<String>['smoke_test_success'],
<String>['--ab=2', '--local-engine=host_debug_unopt', '--ab-result-file', abResultsFile.path],
<String>['--ab=2', '--local-engine=host_debug_unopt', '--local-engine-host=host_debug_unopt', '--ab-result-file', abResultsFile.path],
);
expect(result.exitCode, 0);

View File

@@ -37,6 +37,7 @@ void main() {
group('engine environment declarations', () {
test('localEngine', () {
expect(localEngineFromEnv, null);
expect(localEngineHostFromEnv, null);
expect(localEngineSrcPathFromEnv, null);
});
});