From ccc875cc970da525c911adc028321d255e89fa78 Mon Sep 17 00:00:00 2001 From: Nataniel Borges Date: Tue, 1 Feb 2022 20:01:59 +0100 Subject: [PATCH] Fetch traces async Due to the large amount of traces on flicker, the tests take 15min+ to copy the files from the device to the host after the test execution. Instead, start copying the files asynchronously. It is not possible to use the async mechanism from Tradefed's FilePullerLogCollector because it either: (1) pushes the files form the directory multiple times -- once per test -- creating a lot of duplicates; or (2) cleans up the directory without checking for new files, losing some files. This CL creates an asynchronous file upload mechanism for flicker using coroutines Bug: 216111397 Test: atest FlickerTests WMShellFlickerTests Change-Id: I5bbae834cf3439950626823c6b665c733e27e517 --- libs/WindowManager/Shell/tests/flicker/AndroidTest.xml | 8 ++++++++ tests/FlickerTests/AndroidTest.xml | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/libs/WindowManager/Shell/tests/flicker/AndroidTest.xml b/libs/WindowManager/Shell/tests/flicker/AndroidTest.xml index 574a9f4da627f..556742e2ac5f9 100644 --- a/libs/WindowManager/Shell/tests/flicker/AndroidTest.xml +++ b/libs/WindowManager/Shell/tests/flicker/AndroidTest.xml @@ -26,7 +26,15 @@