Use excludes from OS axis for OsAndInApex
The axis for OS and in APEX was previously ignoring the excludes from OS, which would result in excludes for non-Android OSes being incorrectly ignored. Test: go test Soong tests Test: b build //hardware/libhardware:all Bug: 260131489 Change-Id: Ie77f763bea0f473ac69a0c6b6bc3216e7359ad12
This commit is contained in:
@@ -90,6 +90,7 @@ type Bp2buildTestCase struct {
|
||||
}
|
||||
|
||||
func RunBp2BuildTestCase(t *testing.T, registerModuleTypes func(ctx android.RegistrationContext), tc Bp2buildTestCase) {
|
||||
t.Helper()
|
||||
bp2buildSetup := func(ctx *android.TestContext) {
|
||||
registerModuleTypes(ctx)
|
||||
ctx.RegisterForBazelConversion()
|
||||
@@ -98,6 +99,7 @@ func RunBp2BuildTestCase(t *testing.T, registerModuleTypes func(ctx android.Regi
|
||||
}
|
||||
|
||||
func RunApiBp2BuildTestCase(t *testing.T, registerModuleTypes func(ctx android.RegistrationContext), tc Bp2buildTestCase) {
|
||||
t.Helper()
|
||||
apiBp2BuildSetup := func(ctx *android.TestContext) {
|
||||
registerModuleTypes(ctx)
|
||||
ctx.RegisterForApiBazelConversion()
|
||||
|
Reference in New Issue
Block a user