Merge "Set test config of Robolectric tests to LOCAL_FULL_TEST_CONFIG" am: bbfe9480be

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2434852

Change-Id: I7a8915a224c07de877400436fbccbd3f417cf7ef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Yike Zhang
2023-02-14 23:48:46 +00:00
committed by Automerger Merge Worker

View File

@@ -302,6 +302,9 @@ func (r *robolectricTest) AndroidMkEntries() []android.AndroidMkEntries {
func(ctx android.AndroidMkExtraEntriesContext, entries *android.AndroidMkEntries) {
entries.SetBool("LOCAL_UNINSTALLABLE_MODULE", true)
entries.AddStrings("LOCAL_COMPATIBILITY_SUITE", "robolectric-tests")
if r.testConfig != nil {
entries.SetPath("LOCAL_FULL_TEST_CONFIG", r.testConfig)
}
})
entries.ExtraFooters = []android.AndroidMkExtraFootersFunc{