diff options
author | 2021-01-15 15:10:01 -0800 | |
---|---|---|
committer | 2021-02-05 16:50:03 +0000 | |
commit | 84c9494a5f739e7b77ab2284c9e2010dfe2f33e1 (patch) | |
tree | 899a5caf6fb15bae367684225d4f39446ca2b5e6 /rust/test.go | |
parent | 53b2427fc9a3e256d8611ba27f399fe828797468 (diff) |
Changing default of rust_test_host to unit_tests:true
Switch all rust_test_host to unit_tests = true by default.
Test: presubmit trigger
Bug: 177689340
Change-Id: Ie6059f874d8805049d5f6e5de18574050ae431d7
Diffstat (limited to 'rust/test.go')
-rw-r--r-- | rust/test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rust/test.go b/rust/test.go index 92b486070..f8ebc4c2f 100644 --- a/rust/test.go +++ b/rust/test.go @@ -15,6 +15,8 @@ package rust import ( + "github.com/google/blueprint/proptools" + "android/soong/android" "android/soong/tradefed" ) @@ -127,6 +129,9 @@ func (test *testDecorator) install(ctx ModuleContext) { ctx.PropertyErrorf("no_named_install_directory", "Module install directory may only be disabled if relative_install_path is set") } + if ctx.Host() && test.Properties.Test_options.Unit_test == nil { + test.Properties.Test_options.Unit_test = proptools.BoolPtr(true) + } test.binaryDecorator.install(ctx) } |