mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +00:00
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:
commit
c91e949ed0
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue