[Pytest-commit] Issue #134: Ability to specify the return code for success (hpk42/tox)

Laurens Van Houtven issues-reply at bitbucket.org
Fri Nov 1 19:11:45 CET 2013


New issue 134: Ability to specify the return code for success
https://bitbucket.org/hpk42/tox/issue/134/ability-to-specify-the-return-code-for

Laurens Van Houtven:

Right now, tox assumes that a return code of 0 means "success". That's almost always true, but I've ran into a case where it isn't.

While, arguably, that's a bug in the thing that I'm running, it would be nice if there was a way to specify the expected return code, so I don't have to do crude hacks like:

```
    sh -c "pyroma . || (( $? == 10 ))"
```




More information about the pytest-commit mailing list