aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/testing_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r--python/servo/testing_commands.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index ff4844731d8..2db41a2df9c 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -36,7 +36,9 @@ class MachCommands(CommandBase):
for filename in target_contents:
if filename.startswith(prefix + "-"):
filepath = path.join(
- self.context.topdir, "components", "servo", "target", filename)
+ self.context.topdir, "components", "servo",
+ "target", filename)
+
if path.isfile(filepath) and os.access(filepath, os.X_OK):
return filepath
@@ -106,8 +108,8 @@ class MachCommands(CommandBase):
def cargo_test(component):
return 0 != subprocess.call(
- ["cargo", "test", "-p", component] + test_name,
- env=self.build_env(), cwd=self.servo_crate())
+ ["gdb", "--args", "cargo", "test", "-p", component]
+ + test_name, env=self.build_env(), cwd=self.servo_crate())
for component in os.listdir("components"):
if component != "servo":