Follow symbolic links during searching for the unit test suites // Resolve #4288

This commit is contained in:
Ivan Kravets
2022-05-26 19:18:21 +03:00
parent 460a983ab2
commit 73dd29c59c
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ PlatformIO Core 6
~~~~~~~~~~~~~~~~~~
* Control |UNITTESTING| verbosity with a new multilevel `pio test -v <https://docs.platformio.org/en/latest/core/userguide/cmd_test.html#cmdoption-pio-test-v>`__ command option (`issue #4276 <https://github.com/platformio/platformio-core/issues/4276>`_)
* Follow symbolic links during searching for the unit test suites (`issue #4288 <https://github.com/platformio/platformio-core/issues/4288>`_)
* Fixed an issue when the `build_src_flags <https://docs.platformio.org/en/latest/projectconf/section_env_build.html#build-src-flags>`__ option was applied outside the project scope (`issue #4277 <https://github.com/platformio/platformio-core/issues/4277>`_)
* Fixed an issue with debugging assembly files without preprocessor (".s")

View File

@ -24,7 +24,7 @@ def list_test_names(project_config):
if not os.path.isdir(test_dir):
raise TestDirNotExistsError(test_dir)
names = []
for root, _, __ in os.walk(test_dir):
for root, _, __ in os.walk(test_dir, followlinks=True):
if not os.path.basename(root).startswith("test_"):
continue
names.append(os.path.relpath(root, test_dir).replace("\\", "/"))