1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2020 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<configuration description="Runs init_kill_services_test.">
17    <option name="test-suite-tag" value="apct" />
18    <option name="test-suite-tag" value="apct-native" />
19
20    <!-- cannot be autogenerated: b/153565474 -->
21    <target_preparer class="com.android.tradefed.targetprep.RebootTargetPreparer">
22        <!-- flake mitigation, in case device is in bad state-->
23        <option name="pre-reboot" value="true" />
24        <!-- sometimes device gets into bad state, and we don't detect it in this test,
25          so the test succeeds and the next test fails. This is a really bad result, so
26          to avoid that, making sure we reboot the device again before running any more
27          tests.
28          TODO(b/152556737): add metrics for successful device recovery -->
29        <option name="post-reboot" value="true" />
30    </target_preparer>
31
32    <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/>
33
34    <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer">
35        <option name="cleanup" value="true" />
36        <option name="push" value="init_kill_services_test->/data/local/tmp/init_kill_services_test" />
37    </target_preparer>
38
39    <test class="com.android.tradefed.testtype.GTest" >
40        <option name="native-test-device-path" value="/data/local/tmp" />
41        <option name="module-name" value="init_kill_services_test" />
42    </test>
43</configuration>
44