Permalink
Browse files

fail a little more gracefully

  • Loading branch information...
1 parent 33aa484 commit 286299dee4530d1c80cef139c5ceac96954ed285 @daler daler committed Mar 11, 2017
Showing with 4 additions and 1 deletion.
  1. +4 −1 simulate-travis.py
View
@@ -159,4 +159,7 @@ def _remote_or_local(fn, branch='master', remote=False):
# Override env with whatever's in the shell environment
env.update(os.environ)
- sp.run(['scripts/travis-run.sh'], env=env, universal_newlines=True, check=True)
+ try:
+ sp.run(['scripts/travis-run.sh'], env=env, universal_newlines=True, check=True)
+ except sp.CalledProcessError:
+ sys.exit(1)

0 comments on commit 286299d

Please sign in to comment.