summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
author Julien Desprez <jdesprez@google.com> 2021-05-27 21:31:37 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-05-27 21:31:37 +0000
commit8620b65bf192628c43712777970f53fb3276aed2 (patch)
treee13f6218198a9dc4fcfd05952ea16caaa8d7a488 /python
parentffd4582b8643da0a25612f8242b305a0ebbdf456 (diff)
parent66534a0144699f551a3ffc4f84459223df4bec7f (diff)
Merge "Switch python_test_host default to unit_test:true"
Diffstat (limited to 'python')
-rw-r--r--python/test.go5
1 files changed, 5 insertions, 0 deletions
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