summaryrefslogtreecommitdiff
path: root/src/tox/session/commands/run/parallel.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/tox/session/commands/run/parallel.py')
-rw-r--r--src/tox/session/commands/run/parallel.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tox/session/commands/run/parallel.py b/src/tox/session/commands/run/parallel.py
index 83758bc6..7af6e9a2 100644
--- a/src/tox/session/commands/run/parallel.py
+++ b/src/tox/session/commands/run/parallel.py
@@ -30,6 +30,7 @@ def run_parallel(config, venv_dict):
with Spinner(enabled=show_progress) as spinner:
def run_in_thread(tox_env, os_env, processes):
+ output = None
env_name = tox_env.envconfig.envname
status = "skipped tests" if config.option.notest else None
try:
@@ -52,8 +53,6 @@ def run_parallel(config, venv_dict):
callback=collect_process,
returnout=print_out,
)
- if print_out:
- reporter.verbosity0(output)
except InvocationError as err:
status = "parallel child exit code {}".format(err.exit_code)
@@ -68,6 +67,8 @@ def run_parallel(config, venv_dict):
elif status is not None:
outcome = spinner.fail
outcome(env_name)
+ if print_out and output is not None:
+ reporter.verbosity0(output)
threads = deque()
processes = {}