We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When running a single environment, tox correctly reports the exit code back to the calling shell cmd.exe:
cmd.exe
> tox run -e py310-fail 1>NUL 2>NUL & if ERRORLEVEL 1 echo FAIL FAIL >
> tox run -e py310-ok 1>NUL 2>NUL & if ERRORLEVEL 1 echo FAIL >
However, when multiple environments are run, independent of individual results, the error code always indicates "OK"
> tox run -e py310-ok,py310-fail 1>NUL 2>NUL & if ERRORLEVEL 1 echo FAIL >
> tox run -e py310-fail,py310-fail2 1>NUL 2>NUL & if ERRORLEVEL 1 echo FAIL >
If at least one run fails, that should be reflected in the return code:
> tox run -e py310-ok,py310-fail 1>NUL 2>NUL & if ERRORLEVEL 1 echo FAIL FAIL >
> tox run -e py310-fail,py310-fail2 1>NUL 2>NUL & if ERRORLEVEL 1 echo FAIL FAIL >
Of course, if all succeed, that should also be correctly transported:
> tox run -e py310-ok,py310-ok2 1>NUL 2>NUL & if ERRORLEVEL 1 echo FAIL >
pip list
tox
Package Version ---------- ------- pip 23.0.1 setuptools 67.3.3 wheel 0.38.4
(tox is installed via pipx and is not in that environment).
pipx
>tox --version 4.4.6 from <USERHOME>\.local\pipx\venvs\tox\lib\site-packages\tox\__init__.py
I made the effort to set up a minimal example. Feel free to peruse it: See this gist
The text was updated successfully, but these errors were encountered:
PR welcome to fix this 😊
Sorry, something went wrong.
No branches or pull requests
Issue
When running a single environment, tox correctly reports the exit code back to the calling shell
cmd.exe
:> tox run -e py310-ok 1>NUL 2>NUL & if ERRORLEVEL 1 echo FAIL >
However, when multiple environments are run, independent of individual results, the error code always indicates "OK"
> tox run -e py310-ok,py310-fail 1>NUL 2>NUL & if ERRORLEVEL 1 echo FAIL >
> tox run -e py310-fail,py310-fail2 1>NUL 2>NUL & if ERRORLEVEL 1 echo FAIL >
Expected behaviour:
If at least one run fails, that should be reflected in the return code:
Of course, if all succeed, that should also be correctly transported:
> tox run -e py310-ok,py310-ok2 1>NUL 2>NUL & if ERRORLEVEL 1 echo FAIL >
Environment
pip list
of the host Python wheretox
is installed:(tox is installed via
pipx
and is not in that environment).Minimal example
I made the effort to set up a minimal example. Feel free to peruse it:
See this gist
The text was updated successfully, but these errors were encountered: