1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 * Copyright 2020 Google Inc. All Rights Reserved. 4 --> 5<configuration description="Runs Input Tests"> 6 <option name="test-tag" value="InputTests" /> 7 <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer" /> 8 <target_preparer class="com.android.tradefed.targetprep.DeviceSetup"> 9 <!-- keeps the screen on during tests --> 10 <option name="screen-always-on" value="on" /> 11 <!-- prevents the phone from restarting --> 12 <option name="force-skip-system-props" value="true" /> 13 </target_preparer> 14 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> 15 <option name="cleanup-apks" value="true"/> 16 <option name="test-file-name" value="InputTests.apk"/> 17 18 </target_preparer> 19 <test class="com.android.tradefed.testtype.AndroidJUnitTest"> 20 <option name="package" value="com.android.test.input"/> 21 <option name="exclude-annotation" value="androidx.test.filters.FlakyTest" /> 22 <option name="shell-timeout" value="660s" /> 23 <option name="test-timeout" value="600s" /> 24 <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" /> 25 </test> 26 <object class="com.android.tradefed.testtype.suite.module.TestFailureModuleController" 27 type="module_controller"> 28 <!-- Take screenshot upon test failure --> 29 <option name="screenshot-on-failure" value="true" /> 30 </object> 31 <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector"> 32 <option name="pull-pattern-keys" value="input_.*" /> 33 <!-- Pull files created by tests, like the output of screenshot tests --> 34 <option name="directory-keys" value="/storage/emulated/0/InputTests" /> 35 <option name="collect-on-run-ended-only" value="false" /> 36 </metrics_collector> 37</configuration> 38