summaryrefslogtreecommitdiff
path: root/rust/test.go
diff options
context:
space:
mode:
author Nikita Putikhin <nputikhin@google.com> 2024-07-05 15:08:01 +0200
committer Nikita Putikhin <nputikhin@google.com> 2024-07-16 13:29:31 +0200
commit5f23bc98ed172c3d5a1d9de4eb35b9f703c99c25 (patch)
tree7e7ce05e07d1a8d140810fcfef49e56245c4b939 /rust/test.go
parentb3769fcd23c9653d427c89c65f6e9787b93b9c43 (diff)
Switch rust test install base to /data/local/tmp for consistency with cc
Previously this code was not doing anything because the template used for rust did not use the template string that gets replaced with the folder coming from this code. So all tests were getting deployed into /data/local/tmp regardless of being vendor tests. The other change in the chain adds the template string, so this code starts working and system and vendor tests start being deployed into different folders. We want to keep the system test folder as before to avoid potential problems with tests (see b/350479879#comment9). Bug: 347370677 Test: presubmit Change-Id: I93d5a8db3470d1603e26f9cf5d12249f29141a19
Diffstat (limited to 'rust/test.go')
-rw-r--r--rust/test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/rust/test.go b/rust/test.go
index 3087d8d94..b7ddd06a3 100644
--- a/rust/test.go
+++ b/rust/test.go
@@ -116,7 +116,8 @@ func (test *testDecorator) compilerProps() []interface{} {
}
func (test *testDecorator) install(ctx ModuleContext) {
- testInstallBase := "/data/local/tests/unrestricted"
+ // TODO: (b/167308193) Switch to /data/local/tests/unrestricted as the default install base.
+ testInstallBase := "/data/local/tmp"
if ctx.RustModule().InVendorOrProduct() {
testInstallBase = "/data/local/tests/vendor"
}