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
This commit is contained in:
Ivan Lozano
2021-01-29 12:48:05 -05:00
parent 9436be4321
commit 9da4aa8166
5 changed files with 32 additions and 6 deletions

View File

@@ -116,6 +116,7 @@ func (tctx *testRustCtx) useMockedFs() {
"foo.proto": nil,
"liby.so": nil,
"libz.so": nil,
"data.txt": nil,
}
}