From 4169898d8c9a6522ebf2c830bf677004583a5a31 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Wed, 13 Nov 2024 11:31:31 -0800 Subject: Only coverage instrument device modules that are being compiled to dex There's no reason to instrument device modules that are not being compiled to dex with jacoco, as they can't be installed on the device if they only have class files, and modules that depend on it will get the pre-instrumented jar. Bug: 372543712 Test: TestCoverage Change-Id: I10d5fb2eeb1f1acf6393603b5219685bf22f327c --- java/java_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'java/java_test.go') diff --git a/java/java_test.go b/java/java_test.go index 54eb3e14e..d415679bd 100644 --- a/java/java_test.go +++ b/java/java_test.go @@ -3050,6 +3050,7 @@ func TestCoverage(t *testing.T) { java_library { name: "android.car", srcs: ["android.car.java"], + installable: true, } `) -- cgit v1.2.3-59-g8ed1b