aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/testing_commands.py
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2014-12-02 18:15:51 -0700
committerbors-servo <metajack+bors@gmail.com>2014-12-02 18:15:51 -0700
commitc91e949ed02dc299900ed2c50812d733e6740afb (patch)
treefd861c7b5e6acfc8c00d545b0e48456629ea2212 /python/servo/testing_commands.py
parentc68269097e8b6dfd363a74dcf6c5d7de1f675cd9 (diff)
parent2dc0b8973d10533000663eb122c8e3f00312e3d3 (diff)
downloadservo-c91e949ed02dc299900ed2c50812d733e6740afb.tar.gz
servo-c91e949ed02dc299900ed2c50812d733e6740afb.zip
auto merge of #4169 : IdeaHat/servo/fix-mach-unit-test-filter, r=jdm
Minor change, added unit test filter to components so that ./mach test-unit [test-filter] works in line with documentation. I'd personally like to also make filters on the components as well as the tests. This would change the interface (probably to ./mach test-unit [component-filter] [test-filter]), but change is NOT in this pull request.
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r--python/servo/testing_commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index 53f2cd288af..8735a234e12 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -104,7 +104,7 @@ class MachCommands(CommandBase):
def cargo_test(component):
return 0 != subprocess.call(
- ["cargo", "test", "-p", component], env=self.build_env())
+ ["cargo", "test", "-p", component] + test_name, env=self.build_env())
for component in os.listdir("components"):
ret = ret or cargo_test(component)