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

Commit 7b14b505 authored by Toshiki Kikuchi's avatar Toshiki Kikuchi
Browse files

Dismiss login screen before starting tests

This CL adds a command to dismiss the login screen before starting the
tests.
On desktop devices, prior tests may leave the login screen active so we
want to ensure it’s dismissed.

Flag: EXEMPT - test fix
Bug: 416610249
Test: ConnectedDisplayCujSmokeTests

Change-Id: I9e66a18e8a392da065fa790397316cc5ad479449
parent 6c42ad3c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -40,6 +40,8 @@
        <!-- Increase trace size: 20mb for WM and 80mb for SF -->
        <option name="run-command" value="cmd window tracing size 20480"/>
        <option name="run-command" value="su root service call SurfaceFlinger 1029 i32 81920"/>
        <!-- Dismiss login screen -->
        <option name="run-command" value="am switch-user -w 10"/>
    </target_preparer>
    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
        <option name="test-user-token" value="%TEST_USER%"/>