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:
Max Prokhorov
2020-01-23 13:56:08 +03:00
committed by Ivan Kravets
parent 17f9d57207
commit 5ac1e9454f
2 changed files with 5 additions and 2 deletions

View File

@ -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 = {

View File

@ -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,