Unverified Commit 1f19fd71 authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Take screenshot when startup perf test fails to run (#79514)

parent 9aa50fba
......@@ -580,6 +580,16 @@ class StartupTest {
results.add(data);
} else {
currentFailures += 1;
await flutter(
'screenshot',
options: <String>[
'-d',
device.deviceId,
'--out',
hostAgent.dumpDirectory.childFile('screenshot_startup_failure_$currentFailures.png').path,
],
canFail: true,
);
i -= 1;
if (currentFailures == maxFailures) {
return TaskResult.failure('Application failed to start $maxFailures times');
......
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