Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9d639dc authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

Add DefaultUITraceListener to InputTests

This will allow us to collect perfetto traces for InputTests.

Bug: 332714237
Bug: 210460522
Change-Id: I6d824607f6803482cb1cec98301231b7eafc7604
Test: Presubmit
Flag: TEST_ONLY
parent 38e63c31
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -48,6 +48,7 @@ android_test {
        "testables",
        "testng",
        "truth",
        "ui-trace-collector",
    ],
    libs: [
        "android.test.mock",
+5 −0
Original line number Diff line number Diff line
@@ -22,6 +22,9 @@
        <option name="shell-timeout" value="660s" />
        <option name="test-timeout" value="600s" />
        <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
        <option name="device-listeners" value="android.tools.collectors.DefaultUITraceListener"/>
        <!-- DefaultUITraceListener args -->
        <option name="instrumentation-arg" key="skip_test_success_metrics" value="true"/>
    </test>
    <object class="com.android.tradefed.testtype.suite.module.TestFailureModuleController"
            type="module_controller">
@@ -32,6 +35,8 @@
        <option name="pull-pattern-keys" value="input_.*" />
        <!-- Pull files created by tests, like the output of screenshot tests -->
        <option name="directory-keys" value="/sdcard/Download/InputTests" />
        <!-- Pull perfetto traces from DefaultUITraceListener -->
        <option name="pull-pattern-keys" value="perfetto_file_path*" />
        <option name="collect-on-run-ended-only" value="false" />
    </metrics_collector>
</configuration>