Skip to content

Instantly share code, notes, and snippets.

@msabramo
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msabramo/a21033f86b0a22897a88 to your computer and use it in GitHub Desktop.
Save msabramo/a21033f86b0a22897a88 to your computer and use it in GitHub Desktop.
Tox keeps executing commands even when one fails
$ tox --version
1.9.0 imported from /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tox/__init__.pyc
$ tox
py27 runtests: PYTHONHASHSEED='1229193552'
py27 runtests: commands[0] | echo 1
1
py27 runtests: commands[1] | false
ERROR: InvocationError: '/usr/bin/false'
py27 runtests: commands[2] | echo 2
2
py27 runtests: commands[3] | true
py27 runtests: commands[4] | echo 3
3
[tox]
skipsdist = True
envlist = py27
[testenv]
whitelist_externals =
echo
false
true
commands =
echo 1
false
echo 2
true
echo 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment