From 614a5aea0efb72e604649b1190a16c6e05ffeb8c Mon Sep 17 00:00:00 2001 From: Ziwei Zhang Date: Thu, 1 Feb 2024 11:01:54 +0800 Subject: [PATCH] Generate 2.0 config for Mobly test. - Add `v2` suffix for ATS 2.0 config. - Update the mobly test config template. Test: m CtsBluetoothMultiDevicesTestCases (with `runner = "mobly"`) Bug: 299850687 Change-Id: Ic95ecb760989818291f0746054e4f68d12359a9f --- core/base_rules.mk | 2 +- core/clear_vars.mk | 1 + ...python_binary_host_mobly_test_config_template.xml | 12 ++++-------- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/core/base_rules.mk b/core/base_rules.mk index 44e1c7a058..88621c238a 100644 --- a/core/base_rules.mk +++ b/core/base_rules.mk @@ -806,7 +806,7 @@ else ifneq (,$(test_config)) $(foreach suite, $(LOCAL_COMPATIBILITY_SUITE), \ $(eval my_compat_dist_config_$(suite) += $(foreach dir, $(call compatibility_suite_dirs,$(suite)), \ - $(test_config):$(dir)/$(LOCAL_MODULE).config))) + $(test_config):$(dir)/$(LOCAL_MODULE).config$(LOCAL_TEST_CONFIG_SUFFIX)))) endif ifneq (,$(LOCAL_EXTRA_FULL_TEST_CONFIGS)) diff --git a/core/clear_vars.mk b/core/clear_vars.mk index 8d99176ca4..5922290efc 100644 --- a/core/clear_vars.mk +++ b/core/clear_vars.mk @@ -291,6 +291,7 @@ LOCAL_STRIP_MODULE:= LOCAL_SYSTEM_SHARED_LIBRARIES:=none LOCAL_TARGET_REQUIRED_MODULES:= LOCAL_TEST_CONFIG:= +LOCAL_TEST_CONFIG_SUFFIX:= LOCAL_TEST_DATA:= LOCAL_TEST_DATA_BINS:= LOCAL_TEST_MAINLINE_MODULES:= diff --git a/core/python_binary_host_mobly_test_config_template.xml b/core/python_binary_host_mobly_test_config_template.xml index a6576cde61..a986df2db1 100644 --- a/core/python_binary_host_mobly_test_config_template.xml +++ b/core/python_binary_host_mobly_test_config_template.xml @@ -13,13 +13,9 @@ {EXTRA_CONFIGS} - - + + - - - +