From 5067db9d02b4ea0e73d55790b3fc37d52d56d69c Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Mon, 17 Sep 2018 16:46:35 -0700 Subject: [PATCH] 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 --- java/app.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/java/app.go b/java/app.go index 3f72ec9b2..e90c388b7 100644 --- a/java/app.go +++ b/java/app.go @@ -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(