diff --git a/HISTORY.rst b/HISTORY.rst index 34b0e762..8109014e 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -49,6 +49,7 @@ Please check `Migration guide from 5.x to 6.0 `__ option (`issue #2891 `_) - Provide more information when the native program crashed on a host (errored with a negative return code) (`issue #3429 `_) - Fixed an issue when command line parameters ("--ignore", "--filter") do not override values defined in the |PIOCONF| (`issue #3845 `_) + - Renamed the "test_build_project_src" project configuration option to `test_build_src `__ * **Static Code Analysis** diff --git a/platformio/builder/tools/platformio.py b/platformio/builder/tools/platformio.py index 2198ca22..fde67426 100644 --- a/platformio/builder/tools/platformio.py +++ b/platformio/builder/tools/platformio.py @@ -166,9 +166,7 @@ def ProcessProjectDeps(env): projenv.BuildSources( "$BUILD_TEST_DIR", "$PROJECT_TEST_DIR", "$PIOTEST_SRC_FILTER" ) - if "test" not in env.GetBuildType() or env.GetProjectOption( - "test_build_project_src" - ): + if "test" not in env.GetBuildType() or env.GetProjectOption("test_build_src"): projenv.BuildSources( "$BUILD_SRC_DIR", "$PROJECT_SRC_DIR", env.get("SRC_FILTER") ) diff --git a/platformio/project/options.py b/platformio/project/options.py index ef470801..a82e5459 100644 --- a/platformio/project/options.py +++ b/platformio/project/options.py @@ -679,8 +679,9 @@ ProjectOptions = OrderedDict( ), ConfigEnvOption( group="test", - name="test_build_project_src", - description="Build project source code in a pair with test code", + name="test_build_src", + oldnames=["test_build_project_src"], + description="Build main source code in pair with a test code", type=click.BOOL, default=False, ),