Skip to content
Snippets Groups Projects
Commit 42da924e authored by Oli Lan's avatar Oli Lan
Browse files

Add FrameworksInProcessTests to presubmit.

This adds tests that run in-process in system server to presubmit.

These are tests that use the new mechanism described at
go/internal-api-testing to instrument the system server.

This CL also changes the in-process tests to use DeviceCleaner
to reboot the device after the tests, rather than using "am restart"
as the previous approach caused subsequent tests to fail.

Bug: 162933947
Test: atest
Change-Id: I1487202b1432a7986b3a0a03b9cfb318d5ec53ae
parent 18e49643
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,17 @@
"exclude-annotation": "org.junit.Ignore"
}
]
},
{
"name": "FrameworksInProcessTests",
"options": [
{
"exclude-annotation": "androidx.test.filters.FlakyTest"
},
{
"exclude-annotation": "org.junit.Ignore"
}
]
}
],
"postsubmit-managedprofile-stress": [
......
......@@ -24,8 +24,8 @@
</target_preparer>
<!-- Restart to clear test code from system server -->
<target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
<option name="teardown-command" value="am restart" />
<target_preparer class="com.android.tradefed.targetprep.DeviceCleaner">
<option name="cleanup-action" value="REBOOT" />
</target_preparer>
<test class="com.android.tradefed.testtype.AndroidJUnitTest">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment