Allow instrumenting android_test modules.

android_test modules should have Instrument = true like android_app
modules so that they get instrumented when EMMA_INSTRUMENT=true.

Bug: 115929955
Test: m EMMA_INSTRUMENT=true
Change-Id: I2c0e8ab95d2cdc47fc28af9c7264ab544d0e7a28
This commit is contained in:
Colin Cross 2018-09-17 16:46:35 -07:00
parent d321629155
commit 5067db9d02
1 changed files with 2 additions and 0 deletions

View File

@ -250,6 +250,8 @@ func AndroidTestFactory() android.Module {
module := &AndroidTest{}
module.Module.deviceProperties.Optimize.Enabled = proptools.BoolPtr(true)
module.Module.properties.Instrument = true
module.Module.properties.Installable = proptools.BoolPtr(true)
module.AddProperties(