diff options
author | 2023-02-14 12:17:32 +0800 | |
---|---|---|
committer | 2023-02-15 03:18:55 +0800 | |
commit | 0fcf90a357c15d85e2a4c1cf12c294152d969910 (patch) | |
tree | 0b01da485f486314f848bae8480d4178b47509e2 | |
parent | e56fd9467d912bb585e812fbb96c80c9f7208f1e (diff) |
Set test config of Robolectric tests to `LOCAL_FULL_TEST_CONFIG`
Downstream infra needs this information to determine if a module is
testable to TradeFed.
Test: m out/target/product/coral/module-info.json
Bug: 268670243
Change-Id: Ibdf99c86cb6abe726552a6e4ffbdc756f751907b
-rw-r--r-- | java/robolectric.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/java/robolectric.go b/java/robolectric.go index 68f27b859..008b8b1c9 100644 --- a/java/robolectric.go +++ b/java/robolectric.go @@ -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{ |