Don't add unused properties to android_test_import

android_test_import is to import prebuilt test apks into the build rule.
It doesn't support properties like test_config, test_config_template,
and etc, but those properties were anyhow added to the module type and
setting those properties didn't trigger any error.

Fixing this surprising behavior by adding only the properties that are
actualy being used.

Bug: N/A
Test: N/A

Change-Id: I93e821e108861fa1249bc5e0882d706849bcf43f
This commit is contained in:
Jiyong Park
2022-10-20 20:18:35 +09:00
parent 91e8d3d00c
commit 2f83b31af7

View File

@@ -500,7 +500,18 @@ type androidTestImportProperties struct {
type AndroidTestImport struct {
AndroidAppImport
testProperties testProperties
testProperties struct {
// list of compatibility suites (for example "cts", "vts") that the module should be
// installed into.
Test_suites []string `android:"arch_variant"`
// list of files or filegroup modules that provide data that should be installed alongside
// the test
Data []string `android:"path"`
// Install the test into a folder named for the module in all test suites.
Per_testcase_directory *bool
}
testImportProperties androidTestImportProperties