Auto merge of #16655 - servo:jdm-patch-1, r=emilio

Fix broken unit tests

These are tests that only get run on TravisCI, apparently, so they were broken by be0139ff3c and 32c624e585 without anybody noticing.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16655)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-05-03 09:47:44 -05:00 committed by GitHub
commit 3905b5af18
6 changed files with 53 additions and 28 deletions

View file

@ -231,8 +231,10 @@ class MachCommands(CommandBase):
else:
test_patterns.append(test)
in_crate_packages = []
if not packages:
packages = set(os.listdir(path.join(self.context.topdir, "tests", "unit"))) - set(['.DS_Store'])
in_crate_packages += ["selectors"]
packages.discard('stylo')
@ -255,6 +257,8 @@ class MachCommands(CommandBase):
args = ["cargo", "bench" if bench else "test"]
for crate in packages:
args += ["-p", "%s_tests" % crate]
for crate in in_crate_packages:
args += ["-p", crate]
args += test_patterns
if features: