summaryrefslogtreecommitdiff
path: root/tests/BootImageProfileTest
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2020-03-24 11:34:57 -0700
committer Mathieu Chartier <mathieuc@google.com> 2020-03-24 11:34:57 -0700
commiteea7926c2ada8a047de05a263b0d487d4f7565f3 (patch)
tree11d807084fd181f336800bb3d3fc0e6497214fbf /tests/BootImageProfileTest
parent70b1c45a9e86785055768d7d70497f10bbd07a6a (diff)
Reboot device after test for cleanup
Since the properties are not persistent, reboot the device to clean up after doing the test. Test: atest BootImageProfileTest and verify properties Bug: 151798523 Change-Id: Icf120e032c12f83635b3d9e8cdc764b4ebd817dd
Diffstat (limited to 'tests/BootImageProfileTest')
-rw-r--r--tests/BootImageProfileTest/AndroidTest.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/BootImageProfileTest/AndroidTest.xml b/tests/BootImageProfileTest/AndroidTest.xml
index d7f820411f27..7e97fa3a8ff1 100644
--- a/tests/BootImageProfileTest/AndroidTest.xml
+++ b/tests/BootImageProfileTest/AndroidTest.xml
@@ -23,6 +23,10 @@
<option name="force-skip-system-props" value="true" />
</target_preparer>
+ <target_preparer class="com.android.tradefed.targetprep.DeviceCleaner">
+ <option name="cleanup-action" value="REBOOT" />
+ </target_preparer>
+
<test class="com.android.tradefed.testtype.HostTest" >
<option name="class" value="com.android.bootimageprofile.BootImageProfileTest" />
</test>