Ignore LOCAL_XTS_TEST_PACKAGE translation

This commit enables `androidmk` to skip checking the obsolete attribute
`LOCAL_XTS_TEST_PACKAGE` without generating warning message.

Bug: 318619340
Test: m androidmk && androidmk <somewhere>/Android.mk
Change-Id: I42dbbd4aa1c61b9e344bfb219b372a0c48d77645
This commit is contained in:
Jim Tang
2024-01-04 16:34:49 +08:00
parent 0f5162161d
commit b9db38631e
2 changed files with 21 additions and 0 deletions

View File

@@ -86,6 +86,7 @@ var rewriteProperties = map[string](func(variableAssignmentContext) error){
"LOCAL_ANNOTATION_PROCESSOR_CLASSES": skip, // Soong gets the processor classes from the plugin
"LOCAL_CTS_TEST_PACKAGE": skip, // Obsolete
"LOCAL_XTS_TEST_PACKAGE": skip, // Obsolete
"LOCAL_JACK_ENABLED": skip, // Obselete
"LOCAL_JACK_FLAGS": skip, // Obselete
}

View File

@@ -820,6 +820,26 @@ android_test {
data: ["file1"],
}
`,
},
{
desc: "IGNORE_LOCAL_XTS_TEST_PACKAGE",
in: `
include $(CLEAR_VARS)
LOCAL_PACKAGE_NAME := FooTest
LOCAL_COMPATIBILITY_SUITE := cts
LOCAL_XTS_TEST_PACKAGE := foo.bar
LOCAL_COMPATIBILITY_SUPPORT_FILES := file1
include $(BUILD_CTS_PACKAGE)
`,
expected: `
android_test {
name: "FooTest",
defaults: ["cts_defaults"],
test_suites: ["cts"],
data: ["file1"],
}
`,
},
{