diff options
Diffstat (limited to 'rust/test.go')
-rw-r--r-- | rust/test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/test.go b/rust/test.go index b7ddd06a3..20ccfb31c 100644 --- a/rust/test.go +++ b/rust/test.go @@ -46,6 +46,9 @@ type TestProperties struct { // the test Data []string `android:"path,arch_variant"` + // Same as data, but will add dependencies on the device's + Device_common_data []string `android:"path_device_common"` + // list of shared library modules that should be installed alongside the test Data_libs []string `android:"arch_variant"` @@ -143,6 +146,7 @@ func (test *testDecorator) install(ctx ModuleContext) { }) dataSrcPaths := android.PathsForModuleSrc(ctx, test.Properties.Data) + dataSrcPaths = append(dataSrcPaths, android.PathsForModuleSrc(ctx, test.Properties.Device_common_data)...) ctx.VisitDirectDepsWithTag(dataLibDepTag, func(dep android.Module) { depName := ctx.OtherModuleName(dep) |