summaryrefslogtreecommitdiff
path: root/tests/session
diff options
context:
space:
mode:
authorBernát Gábor <bgabor8@bloomberg.net>2021-08-18 14:35:59 +0100
committerGitHub <noreply@github.com>2021-08-18 14:35:59 +0100
commit2c13bf12aeb3b30c052dd11d3ec1a1fe38d0239a (patch)
treef81e7e40a32df80d4e4b18fbb33386b747a953ec /tests/session
parent78176651933ef954111a7e392b6914df938b7c8b (diff)
downloadtox-git-2c13bf12aeb3b30c052dd11d3ec1a1fe38d0239a.tar.gz
Fix parallel show output not working (#2161)
When there was also a package built in the given run. Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
Diffstat (limited to 'tests/session')
-rw-r--r--tests/session/cmd/test_parallel.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/session/cmd/test_parallel.py b/tests/session/cmd/test_parallel.py
index 286328d2..242370e4 100644
--- a/tests/session/cmd/test_parallel.py
+++ b/tests/session/cmd/test_parallel.py
@@ -1,4 +1,5 @@
from argparse import ArgumentTypeError
+from pathlib import Path
import pytest
from pytest_mock import MockerFixture
@@ -98,3 +99,10 @@ def test_parallel_run_live_out(tox_project: ToxProjectCreator) -> None:
assert "python -c" in outcome.out
assert "run a" in outcome.out
assert "run b" in outcome.out
+
+
+def test_parallel_show_output_with_pkg(tox_project: ToxProjectCreator, demo_pkg_inline: Path) -> None:
+ ini = "[testenv]\nparallel_show_output=True\ncommands=python -c 'print(\"r {env_name}\")'"
+ project = tox_project({"tox.ini": ini})
+ result = project.run("p", "--root", str(demo_pkg_inline))
+ assert "r py" in result.out