[WIP] Switch sh_test_host to unit_tests=true by default

Test: presubmit
Bug: 192278266
Change-Id: Ief6f8fa753f13f0a4944a0a183a12497f138e1e8
This commit is contained in:
Julien Desprez 2021-06-28 13:41:43 -07:00
parent 68ecdef42d
commit 06f1399d5f

View file

@ -495,6 +495,10 @@ func ShTestHostFactory() android.Module {
module := &ShTest{}
InitShBinaryModule(&module.ShBinary)
module.AddProperties(&module.testProperties)
// Default sh_test_host to unit_tests = true
if module.testProperties.Test_options.Unit_test == nil {
module.testProperties.Test_options.Unit_test = proptools.BoolPtr(true)
}
android.InitAndroidArchModule(module, android.HostSupported, android.MultilibFirst)
return module