Skip to content

Commit

Permalink
Allow running selectors tests with test-unit.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdm committed Jun 9, 2017
1 parent 1e1b7f6 commit 2df07c0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions python/servo/testing_commands.py
Expand Up @@ -236,6 +236,14 @@ def test_unit(self, test_name=None, package=None, bench=False, nocapture=False):
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
Expand Down

0 comments on commit 2df07c0

Please sign in to comment.