From 73dd29c59ccf2348abccce50c00cfd253b016ae4 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Thu, 26 May 2022 19:18:21 +0300 Subject: [PATCH] Follow symbolic links during searching for the unit test suites // Resolve #4288 --- HISTORY.rst | 1 + platformio/test/helpers.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 05fa7288..75e667e2 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -17,6 +17,7 @@ PlatformIO Core 6 ~~~~~~~~~~~~~~~~~~ * Control |UNITTESTING| verbosity with a new multilevel `pio test -v `__ command option (`issue #4276 `_) +* Follow symbolic links during searching for the unit test suites (`issue #4288 `_) * Fixed an issue when the `build_src_flags `__ option was applied outside the project scope (`issue #4277 `_) * Fixed an issue with debugging assembly files without preprocessor (".s") diff --git a/platformio/test/helpers.py b/platformio/test/helpers.py index a8e2f818..a789a6ea 100644 --- a/platformio/test/helpers.py +++ b/platformio/test/helpers.py @@ -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("\\", "/"))