From 286299dee4530d1c80cef139c5ceac96954ed285 Mon Sep 17 00:00:00 2001 From: Ryan Dale Date: Sat, 11 Mar 2017 17:07:54 -0500 Subject: [PATCH] fail a little more gracefully --- simulate-travis.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/simulate-travis.py b/simulate-travis.py index 69a9e4bde7..061b4ef327 100755 --- a/simulate-travis.py +++ b/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)