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

Commit 9527d67c authored by Mateusz Cicheński's avatar Mateusz Cicheński Committed by Android (Google) Code Review
Browse files

Merge "Reorder the target preparers to install apps before test." into main

parents dc121ba2 160f6c1b
Loading
Loading
Loading
Loading
+11 −20
Original line number Diff line number Diff line
@@ -57,6 +57,17 @@
        <option name="test-file-name" value="WMShellFlickerTestsPipAppsCSuite.apk"/>
        <option name="test-file-name" value="FlickerTestApp.apk"/>
    </target_preparer>

    <!-- Needed for installing apk's from Play Store -->
    <target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup">
        <option name="aapt-version" value="AAPT2"/>
        <option name="throw-if-not-found" value="false"/>
        <option name="install-arg" value="-d"/>
        <option name="install-arg" value="-g"/>
        <option name="install-arg" value="-r"/>
        <option name="test-file-name" value="pstash://com.netflix.mediaclient"/>
    </target_preparer>

    <!-- Enable mocking GPS location by the test app -->
    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
        <option name="run-command"
@@ -93,29 +104,9 @@
    <!-- Needed for pulling the collected trace config on to the host -->
    <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector">
        <option name="pull-pattern-keys" value="perfetto_file_path"/>
        <option name="directory-keys"
                value="/data/user/0/com.android.wm.shell.flicker/files"/>
        <option name="directory-keys"
                value="/data/user/0/com.android.wm.shell.flicker.bubbles/files"/>
        <option name="directory-keys"
                value="/data/user/0/com.android.wm.shell.flicker.pip/files"/>
        <option name="directory-keys"
                value="/data/user/0/com.android.wm.shell.flicker.pip.apps/files"/>
        <option name="directory-keys"
                value="/data/user/0/com.android.wm.shell.flicker.splitscreen/files"/>
        <option name="directory-keys"
                value="/data/user/0/com.android.wm.shell.flicker.service/files"/>
        <option name="collect-on-run-ended-only" value="true"/>
        <option name="clean-up" value="true"/>
    </metrics_collector>

    <!-- Needed for installing apk's from Play Store -->
    <target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup">
        <option name="aapt-version" value="AAPT2"/>
        <option name="throw-if-not-found" value="false"/>
        <option name="install-arg" value="-d"/>
        <option name="install-arg" value="-g"/>
        <option name="install-arg" value="-r"/>
        <option name="test-file-name" value="pstash://com.netflix.mediaclient"/>
    </target_preparer>
</configuration>