mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
pio-test: pass --verbose to the run command context (#3338)
* pio-test: pass --verbose to the run command context * restore old output behavior
This commit is contained in:
committed by
Ivan Kravets
parent
17f9d57207
commit
5ac1e9454f
@ -107,7 +107,8 @@ def cli( # pylint: disable=redefined-builtin
|
|||||||
raise exception.TestDirNotExists(test_dir)
|
raise exception.TestDirNotExists(test_dir)
|
||||||
test_names = get_test_names(test_dir)
|
test_names = get_test_names(test_dir)
|
||||||
|
|
||||||
click.echo("Verbose mode can be enabled via `-v, --verbose` option")
|
if not verbose:
|
||||||
|
click.echo("Verbose mode can be enabled via `-v, --verbose` option")
|
||||||
click.secho("Collected %d items" % len(test_names), bold=True)
|
click.secho("Collected %d items" % len(test_names), bold=True)
|
||||||
|
|
||||||
results = []
|
results = []
|
||||||
@ -159,6 +160,7 @@ def cli( # pylint: disable=redefined-builtin
|
|||||||
monitor_rts=monitor_rts,
|
monitor_rts=monitor_rts,
|
||||||
monitor_dtr=monitor_dtr,
|
monitor_dtr=monitor_dtr,
|
||||||
verbose=verbose,
|
verbose=verbose,
|
||||||
|
silent=not verbose,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
result = {
|
result = {
|
||||||
|
@ -119,7 +119,8 @@ class TestProcessorBase(object):
|
|||||||
cmd_run,
|
cmd_run,
|
||||||
project_dir=self.options["project_dir"],
|
project_dir=self.options["project_dir"],
|
||||||
upload_port=self.options["upload_port"],
|
upload_port=self.options["upload_port"],
|
||||||
silent=not self.options["verbose"],
|
verbose=self.options["verbose"],
|
||||||
|
silent=self.options["silent"],
|
||||||
environment=[self.env_name],
|
environment=[self.env_name],
|
||||||
disable_auto_clean="nobuild" in target,
|
disable_auto_clean="nobuild" in target,
|
||||||
target=target,
|
target=target,
|
||||||
|
Reference in New Issue
Block a user