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'; ...@@ -7,6 +7,7 @@ import 'dart:convert';
import 'dart:io'; import 'dart:io';
import 'dart:math' as math; import 'dart:math' as math;
import 'package:flutter_devicelab/framework/adb.dart';
import 'package:meta/meta.dart'; import 'package:meta/meta.dart';
import 'package:path/path.dart' as path; import 'package:path/path.dart' as path;
import 'package:process/process.dart'; import 'package:process/process.dart';
...@@ -432,8 +433,23 @@ Future<String> eval( ...@@ -432,8 +433,23 @@ Future<String> eval(
} }
List<String> flutterCommandArgs(String command, List<String> options) { 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>[ return <String>[
command, command,
if (deviceOperatingSystem == DeviceOperatingSystem.ios && supportedDeviceTimeoutCommands.contains(command))
...<String>[
'--device-timeout',
'10',
],
if (localEngine != null) ...<String>['--local-engine', localEngine], if (localEngine != null) ...<String>['--local-engine', localEngine],
if (localEngineSrcPath != null) ...<String>['--local-engine-src-path', localEngineSrcPath], if (localEngineSrcPath != null) ...<String>['--local-engine-src-path', localEngineSrcPath],
...options, ...options,
......
...@@ -769,6 +769,10 @@ class PerfTestWithSkSL extends PerfTest { ...@@ -769,6 +769,10 @@ class PerfTestWithSkSL extends PerfTest {
_flutterPath, _flutterPath,
<String>[ <String>[
'run', 'run',
if (deviceOperatingSystem == DeviceOperatingSystem.ios)
...<String>[
'--device-timeout', '10',
],
'--verbose', '--verbose',
'--verbose-system-logs', '--verbose-system-logs',
'--purge-persistent-cache', '--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