]> git.baikalelectronics.ru Git - uboot.git/commit
test/py: improve regular expression for ut subtest symbol matcher
authorMarek Behún <marek.behun@nic.cz>
Thu, 20 May 2021 11:23:54 +0000 (13:23 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 24 May 2021 18:21:30 +0000 (14:21 -0400)
commitd5688ccf9a19b2f321b1076a03d92699f86482b3
treebe8cd90770a628e5cb285a435e383a525bc65ab9
parente4c07be4391d3b0263f983a8cc2b4b1f8e7c5d62
test/py: improve regular expression for ut subtest symbol matcher

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 <marek.behun@nic.cz>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/py/conftest.py