diff --git a/core/clear_vars.mk b/core/clear_vars.mk index 94a027c062..a67cca6372 100644 --- a/core/clear_vars.mk +++ b/core/clear_vars.mk @@ -42,6 +42,7 @@ LOCAL_CLANG_CPPFLAGS:= LOCAL_CLANG_LDFLAGS:= LOCAL_CLASSPATH:= LOCAL_COMPATIBILITY_SUITE:= +LOCAL_COMPATIBILITY_PER_TESTCASE_DIRECTORY:= LOCAL_COMPATIBILITY_SUPPORT_FILES:= LOCAL_COMPRESSED_MODULE:= LOCAL_CONLYFLAGS:= diff --git a/core/definitions.mk b/core/definitions.mk index 981c6cb3b8..c7172ca9e6 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -2994,9 +2994,10 @@ endef # Can be passed a subdirectory to use for the common testcase directory. define compatibility_suite_dirs $(strip \ - $(if $(COMPATIBILITY_TESTCASES_OUT_INCLUDE_MODULE_FOLDER_$(1)),\ - $(COMPATIBILITY_TESTCASES_OUT_$(1))/$(LOCAL_MODULE)$(2),\ - $(COMPATIBILITY_TESTCASES_OUT_$(1))) \ + $(if $(COMPATIBILITY_TESTCASES_OUT_$(1)), \ + $(if $(COMPATIBILITY_TESTCASES_OUT_INCLUDE_MODULE_FOLDER_$(1))$(LOCAL_COMPATIBILITY_PER_TESTCASE_DIRECTORY),\ + $(COMPATIBILITY_TESTCASES_OUT_$(1))/$(LOCAL_MODULE)$(2),\ + $(COMPATIBILITY_TESTCASES_OUT_$(1)))) \ $($(my_prefix)OUT_TESTCASES)/$(LOCAL_MODULE)$(2)) endef