Merge "Switch python_test_host default to unit_test:true"
This commit is contained in:
@@ -15,6 +15,8 @@
|
|||||||
package python
|
package python
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/google/blueprint/proptools"
|
||||||
|
|
||||||
"android/soong/android"
|
"android/soong/android"
|
||||||
"android/soong/tradefed"
|
"android/soong/tradefed"
|
||||||
)
|
)
|
||||||
@@ -102,6 +104,9 @@ func NewTest(hod android.HostOrDeviceSupported) *Module {
|
|||||||
binary.pythonInstaller = NewPythonInstaller("nativetest", "nativetest64")
|
binary.pythonInstaller = NewPythonInstaller("nativetest", "nativetest64")
|
||||||
|
|
||||||
test := &testDecorator{binaryDecorator: binary}
|
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.bootstrapper = test
|
||||||
module.installer = test
|
module.installer = test
|
||||||
|
Reference in New Issue
Block a user