From 66534a0144699f551a3ffc4f84459223df4bec7f Mon Sep 17 00:00:00 2001 From: Julien Desprez Date: Tue, 9 Feb 2021 09:27:39 -0800 Subject: [PATCH] Switch python_test_host default to unit_test:true Test: presubmit Bug: 183730987 Change-Id: Ib54c30c751731aaae8a46af96e809c46469659d1 --- python/test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/test.go b/python/test.go index 6713189fd..7413782cb 100644 --- a/python/test.go +++ b/python/test.go @@ -15,6 +15,8 @@ package python import ( + "github.com/google/blueprint/proptools" + "android/soong/android" "android/soong/tradefed" ) @@ -102,6 +104,9 @@ func NewTest(hod android.HostOrDeviceSupported) *Module { binary.pythonInstaller = NewPythonInstaller("nativetest", "nativetest64") test := &testDecorator{binaryDecorator: binary} + if hod == android.HostSupportedNoCross && test.testProperties.Test_options.Unit_test == nil { + test.testProperties.Test_options.Unit_test = proptools.BoolPtr(true) + } module.bootstrapper = test module.installer = test