Don't throw on non-zero exit in mach commands

Fixes #3344.
This commit is contained in:
Matt Brubeck 2014-09-15 08:31:43 -07:00
parent 2f12d5628f
commit e69fbc22de

View file

@ -50,10 +50,11 @@ class MachCommands(CommandBase):
opts += ["-v"] opts += ["-v"]
build_start = time() build_start = time()
subprocess.check_call(["cargo", "build"] + opts, env=self.build_env()) status = subprocess.call(["cargo", "build"] + opts, env=self.build_env())
elapsed = time() - build_start elapsed = time() - build_start
print("Build completed in %0.2fs" % elapsed) print("Build completed in %0.2fs" % elapsed)
return status
@Command('build-cef', @Command('build-cef',
description='Build the Chromium Embedding Framework library', description='Build the Chromium Embedding Framework library',
@ -89,7 +90,7 @@ class MachCommands(CommandBase):
opts = [] opts = []
if jobs is not None: if jobs is not None:
opts += ["-j", jobs] opts += ["-j", jobs]
subprocess.check_call(["cargo", "test", "--no-run"], env=self.build_env()) return subprocess.call(["cargo", "test", "--no-run"], env=self.build_env())
@Command('clean', @Command('clean',
description='Clean the build directory.', description='Clean the build directory.',
@ -109,4 +110,4 @@ class MachCommands(CommandBase):
if verbose: if verbose:
opts += ["-v"] opts += ["-v"]
subprocess.check_call(["cargo", "clean"] + opts, env=self.build_env()) return subprocess.call(["cargo", "clean"] + opts, env=self.build_env())