summaryrefslogtreecommitdiff
path: root/testing/all_test_specs.go
diff options
context:
space:
mode:
Diffstat (limited to 'testing/all_test_specs.go')
-rw-r--r--testing/all_test_specs.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/testing/all_test_specs.go b/testing/all_test_specs.go
index 9d4645b37..b035435db 100644
--- a/testing/all_test_specs.go
+++ b/testing/all_test_specs.go
@@ -21,10 +21,9 @@ func (this *allTestSpecsSingleton) GenerateBuildActions(ctx android.SingletonCon
var intermediateMetadataPaths android.Paths
ctx.VisitAllModules(func(module android.Module) {
- if !ctx.ModuleHasProvider(module, TestSpecProviderKey) {
- return
+ if metadata, ok := android.SingletonModuleProvider(ctx, module, TestSpecProviderKey); ok {
+ intermediateMetadataPaths = append(intermediateMetadataPaths, metadata.IntermediatePath)
}
- intermediateMetadataPaths = append(intermediateMetadataPaths, ctx.ModuleProvider(module, TestSpecProviderKey).(TestSpecProviderData).IntermediatePath)
})
rspFile := android.PathForOutput(ctx, fileContainingFilePaths)