From 06f1399d5f7b20114c42c6ee89d1fb9d1a0656b9 Mon Sep 17 00:00:00 2001 From: Julien Desprez Date: Mon, 28 Jun 2021 13:41:43 -0700 Subject: [PATCH] [WIP] Switch sh_test_host to unit_tests=true by default Test: presubmit Bug: 192278266 Change-Id: Ief6f8fa753f13f0a4944a0a183a12497f138e1e8 --- sh/sh_binary.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sh/sh_binary.go b/sh/sh_binary.go index 4805846b7..16474282e 100644 --- a/sh/sh_binary.go +++ b/sh/sh_binary.go @@ -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