Unverified Commit 135aab9c authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Increase device run perf test timeout (#69260)

parent 2ceb34e6
......@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment