aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/post_build_commands.py
diff options
context:
space:
mode:
authorOlaf Buddenhagen <antrik@users.sf.net>2016-05-04 22:02:29 +0200
committerOlaf Buddenhagen <antrik@users.sf.net>2016-05-04 22:13:42 +0200
commit15066559a554d38ed5d1ea6781f3be79621b20c1 (patch)
treec6aa637774581417194aa7304f3f2e4c22f76c12 /python/servo/post_build_commands.py
parenta868bb2a90a5fabf0af8125bae14120e3439d1ed (diff)
downloadservo-15066559a554d38ed5d1ea6781f3be79621b20c1.tar.gz
servo-15066559a554d38ed5d1ea6781f3be79621b20c1.zip
mach run --debug: Cleanup: Use nicer syntax in rust-gdb/rust-lldb check
Follow-up on f3cd5d2961d5493f17062562693608b73ced6128 : after actually reading a Python tutorial, I realised this can be handled in a more elegant fashion :-)
Diffstat (limited to 'python/servo/post_build_commands.py')
-rw-r--r--python/servo/post_build_commands.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/servo/post_build_commands.py b/python/servo/post_build_commands.py
index 7bbb8c03ed5..3170e07437a 100644
--- a/python/servo/post_build_commands.py
+++ b/python/servo/post_build_commands.py
@@ -118,9 +118,10 @@ class PostBuildCommands(CommandBase):
rustCommand = 'rust-' + debugger
try:
subprocess.check_call([rustCommand, '--version'], env=env, stdout=open(os.devnull, 'w'))
- command = rustCommand
except (OSError, subprocess.CalledProcessError):
pass
+ else:
+ command = rustCommand
# Prepend the debugger args.
args = ([command] + self.debuggerInfo.args +