From: Renz Christian Bagaporo Date: Tue, 13 Nov 2018 14:27:53 +0000 (+0800) Subject: cmake: fix for parsing unit test config X-Git-Tag: v3.3-beta1~105^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=364f98b67e83c3a9262452881ee9c406b3d2130f;p=esp-idf cmake: fix for parsing unit test config --- diff --git a/tools/unit-test-app/idf_ext.py b/tools/unit-test-app/idf_ext.py index 9bc9ae0073..98315d6564 100644 --- a/tools/unit-test-app/idf_ext.py +++ b/tools/unit-test-app/idf_ext.py @@ -82,9 +82,9 @@ def add_action_extensions(base_functions, base_actions): config_name = re.match(r"ut-apply-config-(.*)", ut_apply_config_name).group(1) def set_config_build_variables(prop, defval = None): - property_value = re.match(r"^%s=(.*)" % prop, config_file_content) + property_value = re.findall(r"^%s=(.+)" % prop, config_file_content, re.MULTILINE) if (property_value): - property_value = property_value.group(1) + property_value = property_value[0] else: property_value = defval