forked from platformio/platformio-core
Rename the "test_build_project_src" project configuration option to "test_build_src"
This commit is contained in:
@ -49,6 +49,7 @@ Please check `Migration guide from 5.x to 6.0 <https://docs.platformio.org/en/la
|
|||||||
- Generate reports in JUnit and JSON formats using the `pio test --output-format <https://docs.platformio.org/en/latest/core/userguide/cmd_test.html#cmdoption-pio-test-output-format>`__ option (`issue #2891 <https://github.com/platformio/platformio-core/issues/2891>`_)
|
- Generate reports in JUnit and JSON formats using the `pio test --output-format <https://docs.platformio.org/en/latest/core/userguide/cmd_test.html#cmdoption-pio-test-output-format>`__ option (`issue #2891 <https://github.com/platformio/platformio-core/issues/2891>`_)
|
||||||
- Provide more information when the native program crashed on a host (errored with a negative return code) (`issue #3429 <https://github.com/platformio/platformio-core/issues/3429>`_)
|
- Provide more information when the native program crashed on a host (errored with a negative return code) (`issue #3429 <https://github.com/platformio/platformio-core/issues/3429>`_)
|
||||||
- Fixed an issue when command line parameters ("--ignore", "--filter") do not override values defined in the |PIOCONF| (`issue #3845 <https://github.com/platformio/platformio-core/issues/3845>`_)
|
- Fixed an issue when command line parameters ("--ignore", "--filter") do not override values defined in the |PIOCONF| (`issue #3845 <https://github.com/platformio/platformio-core/issues/3845>`_)
|
||||||
|
- Renamed the "test_build_project_src" project configuration option to `test_build_src <https://docs.platformio.org/en/latest//projectconf/section_env_test.html#test-build-src>`__
|
||||||
|
|
||||||
* **Static Code Analysis**
|
* **Static Code Analysis**
|
||||||
|
|
||||||
|
@ -166,9 +166,7 @@ def ProcessProjectDeps(env):
|
|||||||
projenv.BuildSources(
|
projenv.BuildSources(
|
||||||
"$BUILD_TEST_DIR", "$PROJECT_TEST_DIR", "$PIOTEST_SRC_FILTER"
|
"$BUILD_TEST_DIR", "$PROJECT_TEST_DIR", "$PIOTEST_SRC_FILTER"
|
||||||
)
|
)
|
||||||
if "test" not in env.GetBuildType() or env.GetProjectOption(
|
if "test" not in env.GetBuildType() or env.GetProjectOption("test_build_src"):
|
||||||
"test_build_project_src"
|
|
||||||
):
|
|
||||||
projenv.BuildSources(
|
projenv.BuildSources(
|
||||||
"$BUILD_SRC_DIR", "$PROJECT_SRC_DIR", env.get("SRC_FILTER")
|
"$BUILD_SRC_DIR", "$PROJECT_SRC_DIR", env.get("SRC_FILTER")
|
||||||
)
|
)
|
||||||
|
@ -679,8 +679,9 @@ ProjectOptions = OrderedDict(
|
|||||||
),
|
),
|
||||||
ConfigEnvOption(
|
ConfigEnvOption(
|
||||||
group="test",
|
group="test",
|
||||||
name="test_build_project_src",
|
name="test_build_src",
|
||||||
description="Build project source code in a pair with test code",
|
oldnames=["test_build_project_src"],
|
||||||
|
description="Build main source code in pair with a test code",
|
||||||
type=click.BOOL,
|
type=click.BOOL,
|
||||||
default=False,
|
default=False,
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user