bootclasspath_fragment: Treat some specific modules as test
Treats bootclasspath_fragment modules that have not yet been converted
to test modules as if they were test modules. This is a temporary work
around to ease the migration to bootclasspath_fragment_test modules and
is expected to be reverted.
Bug: 194063708
Test: m nothing
Change-Id: I093fbec4e926719b644c64ebfc63f9e3070e28db
(cherry picked from commit ff9b6faba2
)
Merged-In: I093fbec4e926719b644c64ebfc63f9e3070e28db
This commit is contained in:
committed by
Cherrypicker Worker
parent
ab9fbab7ef
commit
e2c7fd9b8c
@@ -835,7 +835,22 @@ func (b *BootclasspathFragmentModule) createHiddenAPIFlagInput(ctx android.Modul
|
||||
|
||||
// isTestFragment returns true if the current module is a test bootclasspath_fragment.
|
||||
func (b *BootclasspathFragmentModule) isTestFragment() bool {
|
||||
return b.testFragment
|
||||
if b.testFragment {
|
||||
return true
|
||||
}
|
||||
|
||||
// TODO(b/194063708): Once test fragments all use bootclasspath_fragment_test
|
||||
// Some temporary exceptions until all test fragments use the
|
||||
// bootclasspath_fragment_test module type.
|
||||
name := b.BaseModuleName()
|
||||
if strings.HasPrefix(name, "test_") {
|
||||
return true
|
||||
}
|
||||
if name == "apex.apexd_test_bootclasspath-fragment" {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// produceHiddenAPIOutput produces the hidden API all-flags.csv file (and supporting files)
|
||||
|
Reference in New Issue
Block a user