diff --git a/HISTORY.rst b/HISTORY.rst index c5ecd654..d17de658 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -41,9 +41,10 @@ PlatformIO Core 6 * Allowed to declare actions in the `PRE-type scripts `__ even if the target is not ready yet * Allowed library maintainers to use Pre & Post Actions in the library `extraScript `__ - - Allowed to ``Import("projenv")`` in a library extra script (`issue #4305 `_) - - Documented `Stringification `__ – converting a macro argument into a string constant (`issue #4310 `_) + - Documented `Stringification `__ – converting a macro argument into a string constant (`issue #4310 `_) + - Added new `pio run --monitor-port `__ option to specify custom device monitor port to the ``monitor`` target (`issue #4337 `_) - Added ``env.StringifyMacro(value)`` helper function for the `Advanced Scripting `__ + - Allowed to ``Import("projenv")`` in a library extra script (`issue #4305 `_) - Fixed an issue when the `build_unflags `__ operation ignores a flag value (`issue #4309 `_) - Fixed an issue when the `build_unflags `__ option was not applied to the ``ASPPFLAGS`` scope - Fixed an issue on Windows OS when flags were wrapped to the temporary file while generating the `Compilation database "compile_commands.json" `__ diff --git a/docs b/docs index bee67b44..b6ae993e 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit bee67b449de38dce2b964a6e254d0ebdba2475bd +Subproject commit b6ae993eda09b83110cf420ca1130182b395a826 diff --git a/platformio/run/cli.py b/platformio/run/cli.py index 29c6812d..eb85b10c 100644 --- a/platformio/run/cli.py +++ b/platformio/run/cli.py @@ -41,6 +41,7 @@ except NotImplementedError: @click.option("-e", "--environment", multiple=True) @click.option("-t", "--target", multiple=True) @click.option("--upload-port") +@click.option("--monitor-port") @click.option( "-d", "--project-dir", @@ -83,6 +84,7 @@ def cli( environment, target, upload_port, + monitor_port, project_dir, project_conf, jobs, @@ -146,6 +148,7 @@ def cli( environment, target, upload_port, + monitor_port, jobs, program_args, is_test_running, @@ -174,6 +177,7 @@ def process_env( environments, targets, upload_port, + monitor_port, jobs, program_args, is_test_running, @@ -207,7 +211,9 @@ def process_env( and "nobuild" not in ep.get_build_targets() ): ctx.invoke( - device_monitor_cmd, environment=environments[0] if environments else None + device_monitor_cmd, + port=monitor_port, + environment=environments[0] if environments else None, ) return result diff --git a/platformio/test/exception.py b/platformio/test/exception.py index 048e7399..12b76ea4 100644 --- a/platformio/test/exception.py +++ b/platformio/test/exception.py @@ -23,7 +23,7 @@ class TestDirNotExistsError(UnitTestError, UserSideException): MESSAGE = ( "A test folder '{0}' does not exist.\nPlease create 'test' " - "directory in the project root and put a test set.\n" + "directory in the project root and put a test suite.\n" "More details about Unit " "Testing: https://docs.platformio.org/en/latest/advanced/" "unit-testing/index.html"