Add new options `--monitor-rts and --monitor-dtr to pio test` command

This commit is contained in:
Ivan Kravets
2017-01-23 00:13:58 +02:00
parent 9405ca3dff
commit ce066417e9
8 changed files with 24 additions and 10 deletions

View File

@ -19,7 +19,8 @@ PlatformIO 3.0
* Show detailed info about a library using `pio lib show <http://docs.platformio.org/page/userguide/lib/cmd_show.html>`__
command
(`issue #430 <https://github.com/platformio/platformio-core/issues/430>`_)
* Added new option ``--no-reset`` to `pio test <http://docs.platformio.org/en/latest/userguide/cmd_test.html>`__
* Added new options ``--no-reset``, ``--monitor-rts`` and ``--monitor-dtr``
to `pio test <http://docs.platformio.org/en/latest/userguide/cmd_test.html>`__
command (allows to avoid automatic board's auto-reset when gathering test results)
* Added support for templated methods in ``*.ino to *.cpp`` converter
(`pull #858 <https://github.com/platformio/platformio-core/pull/858>`_)

2
docs

Submodule docs updated: 80a1f6f621...b1a46aaca7

View File

@ -14,7 +14,7 @@
import sys
VERSION = (3, 3, "0a5")
VERSION = (3, 3, "0a6")
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio"

View File

@ -61,12 +61,12 @@ def device_list(json_output):
@click.option(
"--rts",
default=None,
type=click.Choice(["0", "1"]),
type=click.IntRange(0, 1),
help="Set initial RTS line state")
@click.option(
"--dtr",
default=None,
type=click.Choice(["0", "1"]),
type=click.IntRange(0, 1),
help="Set initial DTR line state")
@click.option("--echo", is_flag=True, help="Enable local echo, default=Off")
@click.option(

View File

@ -147,12 +147,12 @@ def device_list(json_output):
@click.option(
"--rts",
default=None,
type=click.Choice(["0", "1"]),
type=click.IntRange(0, 1),
help="Set initial RTS line state")
@click.option(
"--dtr",
default=None,
type=click.Choice(["0", "1"]),
type=click.IntRange(0, 1),
help="Set initial DTR line state")
@click.option("--echo", is_flag=True, help="Enable local echo, default=Off")
@click.option(

View File

@ -37,7 +37,20 @@ from platformio.pioplus import pioplus_call
resolve_path=True))
@click.option("--without-building", is_flag=True)
@click.option("--without-uploading", is_flag=True)
@click.option("--no-reset", is_flag=True)
@click.option(
"--no-reset",
is_flag=True,
help="Disable software reset via Serial.DTR/RST")
@click.option(
"--monitor-rts",
default=None,
type=click.IntRange(0, 1),
help="Set initial RTS line state for Serial Monitor")
@click.option(
"--monitor-dtr",
default=None,
type=click.IntRange(0, 1),
help="Set initial DTR line state for Serial Monitor")
@click.option("--verbose", "-v", is_flag=True)
def cli(*args, **kwargs): # pylint: disable=unused-argument
pioplus_call(sys.argv[1:])

View File

@ -27,7 +27,7 @@ PACKAGE_DEPS = {
},
"tool": {
"name": "tool-pioplus",
"requirements": ">=0.6.9,<2"
"requirements": ">=0.6.10,<2"
}
}