summaryrefslogtreecommitdiff
path: root/rust/rust_test.go
diff options
context:
space:
mode:
authorIvan Lozano <ivanlozano@google.com>2021-01-29 12:48:05 -0500
committerIvan Lozano <ivanlozano@google.com>2021-01-29 14:31:32 -0500
commit9da4aa8166efe67d6c4ab1fe7911224d94493cc9 (patch)
tree655955ac8c4e54abea372e9499c642d00f7c5f50 /rust/rust_test.go
parent9436be43216d152265187c6d2eece38f9a10a9a7 (diff)
rust: Allow rust_tests to include data files.
Adds the ability to define data files that should be installed alongside the test. This also fixes a bug wherein rust_test properties were duplicated. Bug: 171710847 Test: rust_test module with "data" property installs files to device. Change-Id: I091489afaf7e76b751a33a28049590d9fb39fe5f
Diffstat (limited to 'rust/rust_test.go')
-rw-r--r--rust/rust_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/rust_test.go b/rust/rust_test.go
index fc7f47e08..abc9af9b1 100644
--- a/rust/rust_test.go
+++ b/rust/rust_test.go
@@ -116,6 +116,7 @@ func (tctx *testRustCtx) useMockedFs() {
"foo.proto": nil,
"liby.so": nil,
"libz.so": nil,
+ "data.txt": nil,
}
}