Set testModule to true in cc.NewTest().
This Cl sets testModule field to True in cc.NewTest(). This will cover "cc_test", "cc_test_host" and "art_cc_test". Change-Id: I4a8db86835b195db34fd9f86560e7bf9321fbd7d
This commit is contained in:
@@ -141,7 +141,6 @@ func init() {
|
||||
func TestFactory() android.Module {
|
||||
module := NewTest(android.HostAndDeviceSupported, true)
|
||||
module.bazelHandler = &ccTestBazelHandler{module: module}
|
||||
module.testModule = true
|
||||
return module.Init()
|
||||
}
|
||||
|
||||
@@ -166,7 +165,6 @@ func BenchmarkFactory() android.Module {
|
||||
// cc_test_host compiles a test host binary.
|
||||
func TestHostFactory() android.Module {
|
||||
module := NewTest(android.HostSupported, true)
|
||||
module.testModule = true
|
||||
return module.Init()
|
||||
}
|
||||
|
||||
@@ -492,6 +490,7 @@ func NewTest(hod android.HostOrDeviceSupported, bazelable bool) *Module {
|
||||
module, binary := newBinary(hod, bazelable)
|
||||
module.bazelable = bazelable
|
||||
module.multilib = android.MultilibBoth
|
||||
module.testModule = true
|
||||
binary.baseInstaller = NewTestInstaller()
|
||||
|
||||
test := &testBinary{
|
||||
|
Reference in New Issue
Block a user