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.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index f6159406666..c9be0b02181 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -175,12 +175,13 @@ class MachCommands(CommandBase):
if not packages:
packages = set(os.listdir(path.join(self.context.topdir, "tests", "unit")))
+ args = ["cargo", "test"]
for crate in packages:
- result = subprocess.call(
- ["cargo", "test", "-p", "%s_tests" % crate] + test_patterns,
- env=self.build_env(), cwd=self.servo_crate())
- if result != 0:
- return result
+ args += ["-p", "%s_tests" % crate]
+ args += test_patterns
+ result = subprocess.call(args, env=self.build_env(), cwd=self.servo_crate())
+ if result != 0:
+ return result
@Command('test-ref',
description='Run the reference tests',