Allow running selectors tests with test-unit.

This commit is contained in:
Josh Matthews 2017-06-09 16:22:36 -04:00 committed by GitHub
parent 1e1b7f6ac2
commit 2df07c0150

View file

@ -236,6 +236,14 @@ class MachCommands(CommandBase):
packages = set(os.listdir(path.join(self.context.topdir, "tests", "unit"))) - set(['.DS_Store'])
in_crate_packages += ["selectors"]
# Since the selectors tests have no corresponding selectors_tests crate in tests/unit,
# we need to treat them separately from those that do.
try:
packages.remove('selectors')
in_crate_packages += ["selectors"]
except KeyError:
pass
packages.discard('stylo')
has_style = True