mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
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 bybe0139ff3c
and32c624e585
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:
commit
3905b5af18
6 changed files with 53 additions and 28 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue