summaryrefslogtreecommitdiff
path: root/tests/TaskOrganizerTest/src
diff options
context:
space:
mode:
author Nataniel Borges <natanieljr@google.com> 2020-12-01 16:27:22 +0100
committer Nataniel Borges <natanieljr@google.com> 2020-12-02 17:15:11 +0100
commitd43036b08c666c99d7a3b1cdcecd4f3cd980421d (patch)
tree49d7e37802d7fd38a6622db2a8af4179f4094e16 /tests/TaskOrganizerTest/src
parent0ea52e51d7d38e0ff7ec0865a4a8ccb596043223 (diff)
Store and pull files from /sdcard/
Tradefed FilePullerLogCollector can no longer access the internal app directory (e.g. /storage/emulated/0/Android/data/com.android.server.wm.flicker/files). This makes it unable to pull trace files, when a test fails. This CL makes flicker tests store their data on /sdcard/flicker which can be accessed by the Tradefed FilePullerLogCollector Bug: 171026227 Test: atest FlickerTests Change-Id: Ibed6b621b068b0668d93b39838c0959441527295
Diffstat (limited to 'tests/TaskOrganizerTest/src')
-rw-r--r--tests/TaskOrganizerTest/src/com/android/test/taskembed/ResizeTasksSyncTest.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/TaskOrganizerTest/src/com/android/test/taskembed/ResizeTasksSyncTest.kt b/tests/TaskOrganizerTest/src/com/android/test/taskembed/ResizeTasksSyncTest.kt
index fe9deae80407..c4d81af619d4 100644
--- a/tests/TaskOrganizerTest/src/com/android/test/taskembed/ResizeTasksSyncTest.kt
+++ b/tests/TaskOrganizerTest/src/com/android/test/taskembed/ResizeTasksSyncTest.kt
@@ -68,7 +68,8 @@ class ResizeTasksSyncTest {
val firstBounds = Rect(0, 0, 1080, 800)
val secondBounds = Rect(0, 1000, 1080, 1800)
- val trace = withSFTracing(instrumentation, TRACE_FLAGS) {
+ val trace = withSFTracing(TRACE_FLAGS,
+ outputDir = instrumentation.targetContext.dataDir.toPath()) {
lateinit var resizeReadyLatch: CountDownLatch
scenarioRule.getScenario().onActivity {
resizeReadyLatch = it.resizeTaskView(firstBounds, secondBounds)