Increase device run perf test timeout (#69260)
This commit is contained in:
@@ -7,6 +7,7 @@ import 'dart:convert';
|
||||
import 'dart:io';
|
||||
import 'dart:math' as math;
|
||||
|
||||
import 'package:flutter_devicelab/framework/adb.dart';
|
||||
import 'package:meta/meta.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
import 'package:process/process.dart';
|
||||
@@ -432,8 +433,23 @@ Future<String> eval(
|
||||
}
|
||||
|
||||
List<String> flutterCommandArgs(String command, List<String> options) {
|
||||
// Commands support the --device-timeout flag.
|
||||
final List<String> supportedDeviceTimeoutCommands = <String>[
|
||||
'attach',
|
||||
'devices',
|
||||
'drive',
|
||||
'install',
|
||||
'logs',
|
||||
'run',
|
||||
'screenshot',
|
||||
];
|
||||
return <String>[
|
||||
command,
|
||||
if (deviceOperatingSystem == DeviceOperatingSystem.ios && supportedDeviceTimeoutCommands.contains(command))
|
||||
...<String>[
|
||||
'--device-timeout',
|
||||
'10',
|
||||
],
|
||||
if (localEngine != null) ...<String>['--local-engine', localEngine],
|
||||
if (localEngineSrcPath != null) ...<String>['--local-engine-src-path', localEngineSrcPath],
|
||||
...options,
|
||||
|
||||
@@ -769,6 +769,10 @@ class PerfTestWithSkSL extends PerfTest {
|
||||
_flutterPath,
|
||||
<String>[
|
||||
'run',
|
||||
if (deviceOperatingSystem == DeviceOperatingSystem.ios)
|
||||
...<String>[
|
||||
'--device-timeout', '10',
|
||||
],
|
||||
'--verbose',
|
||||
'--verbose-system-logs',
|
||||
'--purge-persistent-cache',
|
||||
|
||||
Reference in New Issue
Block a user