Merge "Changing default of rust_test_host to unit_tests:true"
This commit is contained in:
commit
7f11ed7fb4
1 changed files with 5 additions and 0 deletions
|
@ -15,6 +15,8 @@
|
||||||
package rust
|
package rust
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/google/blueprint/proptools"
|
||||||
|
|
||||||
"android/soong/android"
|
"android/soong/android"
|
||||||
"android/soong/tradefed"
|
"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")
|
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)
|
test.binaryDecorator.install(ctx)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue