From e8c70c5bd541b4f236885fe46db3a06443ac68d0 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Thu, 18 May 2023 11:51:56 -0700 Subject: [PATCH] Enable host cross python test builds Ic37c8db918873ddf324c86b12b5412952b0f2be2 converted python_binary_host and python_library_host from HostSupportedNoCross to HostSupported, but left python_test_host. Do the same for python_test_host. Fixes dependencies between java_test_host modules that create host cross variants and python_test_host modules that were missing host cross variants. Bug: 282918027 Test: builds Change-Id: Iae687aa3aa0f0b005f2dd27469f631145247a008 --- python/test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/test.go b/python/test.go index 31da17e61..7de7af2de 100644 --- a/python/test.go +++ b/python/test.go @@ -39,7 +39,7 @@ func NewTest(hod android.HostOrDeviceSupported) *PythonTestModule { } func PythonTestHostFactory() android.Module { - return NewTest(android.HostSupportedNoCross).init() + return NewTest(android.HostSupported).init() } func PythonTestFactory() android.Module { @@ -98,7 +98,7 @@ func (p *PythonTestModule) init() android.Module { android.InitAndroidArchModule(p, p.hod, p.multilib) android.InitDefaultableModule(p) android.InitBazelModule(p) - if p.hod == android.HostSupportedNoCross && p.testProperties.Test_options.Unit_test == nil { + if p.hod == android.HostSupported && p.testProperties.Test_options.Unit_test == nil { p.testProperties.Test_options.Unit_test = proptools.BoolPtr(true) } return p