Add data_native_bins
property to java_test_host
When multiple os/arch variants are supported, java_test_host could not find a matching arch due to java having arch:common, whereas native binaries support a specific architecture. This change adds the property `data_native_bins` in order to support binaries with the appropriate os/arch variants. Test: m FirmwareDtboVerification with data_native_bins Test: forrest Bug: 153848038 Change-Id: I45adebff0fde2811d5ef5620c697b97b768c951f
This commit is contained in:
@@ -301,7 +301,7 @@ var (
|
||||
filepath.Join("dir", "file2.py"): nil,
|
||||
filepath.Join("dir", "bin.py"): nil,
|
||||
filepath.Join("dir", "file4.py"): nil,
|
||||
stubTemplateHost: []byte(`PYTHON_BINARY = '%interpreter%'
|
||||
StubTemplateHost: []byte(`PYTHON_BINARY = '%interpreter%'
|
||||
MAIN_FILE = '%main%'`),
|
||||
},
|
||||
expectedBinaries: []pyModule{
|
||||
@@ -330,9 +330,7 @@ func TestPythonModule(t *testing.T) {
|
||||
t.Run(d.desc, func(t *testing.T) {
|
||||
config := android.TestConfig(buildDir, nil, "", d.mockFiles)
|
||||
ctx := android.NewTestContext()
|
||||
ctx.PreDepsMutators(func(ctx android.RegisterMutatorsContext) {
|
||||
ctx.BottomUp("version_split", versionSplitMutator()).Parallel()
|
||||
})
|
||||
ctx.PreDepsMutators(RegisterPythonPreDepsMutators)
|
||||
ctx.RegisterModuleType("python_library_host", PythonLibraryHostFactory)
|
||||
ctx.RegisterModuleType("python_binary_host", PythonBinaryHostFactory)
|
||||
ctx.RegisterModuleType("python_defaults", defaultsFactory)
|
||||
|
Reference in New Issue
Block a user