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:
@@ -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
|
||||
}
|
||||
|
@@ -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"],
|
||||
}
|
||||
`,
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user