Merge "init_kill_services_test: also reboot after"

This commit is contained in:
Treehugger Robot 2020-05-18 17:42:29 +00:00 committed by Gerrit Code Review
commit 25a96e44ca
1 changed files with 10 additions and 1 deletions

View File

@ -18,7 +18,16 @@
<option name="test-suite-tag" value="apct-native" />
<!-- cannot be autogenerated: b/153565474 -->
<target_preparer class="com.android.tradefed.targetprep.RebootTargetPreparer" />
<target_preparer class="com.android.tradefed.targetprep.RebootTargetPreparer">
<!-- flake mitigation, in case device is in bad state-->
<option name="pre-reboot" value="true" />
<!-- sometimes device gets into bad state, and we don't detect it in this test,
so the test succeeds and the next test fails. This is a really bad result, so
to avoid that, making sure we reboot the device again before running any more
tests.
TODO(b/152556737): add metrics for successful device recovery -->
<option name="post-reboot" value="true" />
</target_preparer>
<target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/>