From 2062646c87f683094e39d043902d17e36bc18f92 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Thu, 16 Nov 2023 11:36:56 -0800 Subject: [PATCH] Don't install test data from Soong Soong has already created the test data installation rules. Make still handles packaging the test data into test suites. Bug: 311428265 Test: atest --host toybox-gtests --test-timeout=120000 Change-Id: Ida0469e600b1dec4ce4e450a6c517ae13c133ded --- core/base_rules.mk | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/core/base_rules.mk b/core/base_rules.mk index 8236dc9ddd..915b480513 100644 --- a/core/base_rules.mk +++ b/core/base_rules.mk @@ -670,8 +670,14 @@ $(foreach td,$(LOCAL_TEST_DATA),$(eval $(copy_test_data_pairs))) copy_test_data_pairs := -my_installed_test_data := $(call copy-many-files,$(my_test_data_pairs)) -$(LOCAL_INSTALLED_MODULE): $(my_installed_test_data) +ifneq ($(LOCAL_MODULE_MAKEFILE),$(SOONG_ANDROID_MK)) + my_installed_test_data := $(call copy-many-files,$(my_test_data_pairs)) + $(LOCAL_INSTALLED_MODULE): $(my_installed_test_data) +else + # Skip installing test data for Soong modules, it's already been handled. + # Just compute my_installed_test_data. + my_installed_test_data := $(foreach f, $(my_test_data_pairs), $(call word-colon,2,$(f))) +endif endif endif