From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Thu, 20 May 2021 11:51:49 -0600 Subject: [PATCH u-boot v4 05/36] test/py: improve regular expression for ut subtest symbol matcher In-Reply-To: <20210520112425.25166-6-marek.behun@nic.cz> References: <20210520112425.25166-1-marek.behun@nic.cz> <20210520112425.25166-6-marek.behun@nic.cz> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 20 May 2021 at 05:25, Marek Beh?n wrote: > > Improve the regular expression that matches unittest symbols in > u-boot.sym. > > Currently we do not enforce no prefix in symbol string, but with the > soon to come change in linker lists declaring lists and entries with the > __ADDRESSABLE macro (because of LTO), the symbol file will contain for > every symbol of the form > _u_boot_list_2_ut_X_2_Y > also symbol > __UNIQUE_ID___addressable__u_boot_list_2_ut_X_2_YN, > (where N at the end is some number). > > In order to avoid matching these additional symbols, ensure that the > character before "_u_boot_list_2_ut" is not a symbol name character. > > Signed-off-by: Marek Beh?n > --- > test/py/conftest.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass