summaryrefslogtreecommitdiff
path: root/rust/test.go
diff options
context:
space:
mode:
author Kiyoung Kim <kiyoungkim@google.com> 2024-01-08 12:55:45 +0900
committer Kiyoung Kim <kiyoungkim@google.com> 2024-01-09 11:37:14 +0900
commitaa39480d2107fff4c42e321616436b0b0b718cde (patch)
treed2a4c1dfc7bcc25ed434ac4b273789dead359eaa /rust/test.go
parent208444ce5d9bd9ca013dc81438ef62d6ac4a461f (diff)
Split usage of UseVndk
UseVndk is a function to check if the module can use VNDK libraries, but this function was also used to check if the module is installed in the treblelized partition (vendor or product). As of VNDK deprecation, UseVndk funtion will return false even when the module is installed in vendor / product partition, so we need a separated function to check this. This change introduces a new function 'InVendorOrProduct' which replaces UseVndk based on its usage. Bug: 316829758 Test: m nothing --no-skip-soong-tests passed Change-Id: Ic61fcd16c4554c355f6005894a4519b044b27fe5
Diffstat (limited to 'rust/test.go')
-rw-r--r--rust/test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/test.go b/rust/test.go
index 6619af6a5..258389343 100644
--- a/rust/test.go
+++ b/rust/test.go
@@ -117,7 +117,7 @@ func (test *testDecorator) compilerProps() []interface{} {
func (test *testDecorator) install(ctx ModuleContext) {
testInstallBase := "/data/local/tests/unrestricted"
- if ctx.RustModule().InVendor() || ctx.RustModule().UseVndk() {
+ if ctx.RustModule().InVendorOrProduct() {
testInstallBase = "/data/local/tests/vendor"
}