[WIP] Switch sh_test_host to unit_tests=true by default
Test: presubmit
Bug: 192278266
Change-Id: Ief6f8fa753f13f0a4944a0a183a12497f138e1e8
diff --git a/sh/sh_binary.go b/sh/sh_binary.go
index 4805846..1647428 100644
--- a/sh/sh_binary.go
+++ b/sh/sh_binary.go
@@ -495,6 +495,10 @@
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