From 8d5459fc6d6fd06e9012afb626dc4a7c12338e71 Mon Sep 17 00:00:00 2001 From: Dan Shi Date: Thu, 6 Jun 2019 16:20:12 -0700 Subject: [PATCH] Update auto-gen test config template with EXTRA_CONFIGS placeholder Bug: 134509111 Bug: 136633978 Test: add "require_root: true" to init_benchmarks and libpower_test build the modules, confirm the extra target preparer is added in the test config. Change-Id: I2fdae79d45fd1e5866ee94d1f0e59df106be2a87 Merged-In: I2fdae79d45fd1e5866ee94d1f0e59df106be2a87 --- core/autogen_test_config.mk | 2 +- core/instrumentation_test_config_template.xml | 2 ++ core/java_host_test_config_template.xml | 3 +++ core/java_test_config_template.xml | 3 +++ core/native_benchmark_test_config_template.xml | 3 +++ core/native_host_test_config_template.xml | 3 +++ core/native_test_config_template.xml | 2 +- 7 files changed, 16 insertions(+), 2 deletions(-) diff --git a/core/autogen_test_config.mk b/core/autogen_test_config.mk index 6d751322b..d4ca56f1b 100644 --- a/core/autogen_test_config.mk +++ b/core/autogen_test_config.mk @@ -36,7 +36,7 @@ endif $(autogen_test_config_file): PRIVATE_MODULE_NAME := $(LOCAL_MODULE) $(autogen_test_config_file) : $(autogen_test_config_template) @echo "Auto generating test config $(notdir $@)" - $(hide) sed 's&{MODULE}&$(PRIVATE_MODULE_NAME)&g;s&{EXTRA_OPTIONS}&&g' $< > $@ + $(hide) sed 's&{MODULE}&$(PRIVATE_MODULE_NAME)&g;s&{EXTRA_CONFIGS}&&g' $< > $@ my_auto_generate_config := true else # Auto generating test config file for instrumentation test diff --git a/core/instrumentation_test_config_template.xml b/core/instrumentation_test_config_template.xml index 18ea676af..afaa561e7 100644 --- a/core/instrumentation_test_config_template.xml +++ b/core/instrumentation_test_config_template.xml @@ -22,6 +22,8 @@