Permalink
Browse files
fail a little more gracefully
- Loading branch information...
Showing
with
4 additions
and
1 deletion.
-
+4
−1
simulate-travis.py
|
|
@@ -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