Skip to content

Commit

Permalink
quit with sys.exit(1) if obspy-runtests hits any error
Browse files Browse the repository at this point in the history
  • Loading branch information
barsch committed Aug 6, 2013
1 parent 311eab3 commit 23cb511
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion obspy/core/scripts/runtests.py
Expand Up @@ -613,4 +613,6 @@ def main(interactive=True):
# This script is automatically installed with name obspy-runtests by
# setup.py to the Scripts or bin directory of your Python distribution
# setup.py needs a function to which it's scripts can be linked.
run(interactive=False)
errors = run(interactive=False)
if errors:
sys.exit(1)

0 comments on commit 23cb511

Please sign in to comment.