mirror of
https://github.com/servo/servo.git
synced 2025-06-08 16:43:28 +00:00
Make unit tests pass on TravisCI.
This commit is contained in:
parent
0abd5bbabd
commit
f3f9e28e88
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