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.
This commit is contained in:
bors-servo 2014-12-02 18:15:51 -07:00
commit c91e949ed0

View file

@ -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)