aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-06-09 14:31:48 -0700
committerGitHub <noreply@github.com>2017-06-09 14:31:48 -0700
commit061cb5f48e5c93a5decf39e530aea4a566e97341 (patch)
tree1682083740ce2a850c5204cd046918a8427c57ba /python
parent8fee7f45e0481bf6074788029f8a1eaea24fcca5 (diff)
parent27ae1ef2e7d78f38e744f2e00e177302f2d6aa82 (diff)
downloadservo-061cb5f48e5c93a5decf39e530aea4a566e97341.tar.gz
servo-061cb5f48e5c93a5decf39e530aea4a566e97341.zip
Auto merge of #16752 - jdm:css-parse-error, r=SimonSapin
Report more informative CSS errors This requires https://github.com/servo/rust-cssparser/pull/143 for the final commit. There's no better way to split that work up, unfortunately, and it's extremely easy to bitrot. I would appreciate if we could expedite reviewing this work. This is the work necessary to enable https://bugzilla.mozilla.org/show_bug.cgi?id=1352669. It makes sense to merge it separately because it's so much effort to keep it up to date with the ongoing Stylo work. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [x] There are tests for these changes <!-- 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/16752) <!-- Reviewable:end -->
Diffstat (limited to 'python')
-rw-r--r--python/servo/testing_commands.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index 08598584a4f..78d745df3b2 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -232,6 +232,15 @@ class MachCommands(CommandBase):
test_patterns.append(test)
in_crate_packages = []
+
+ # 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
+
if not packages:
packages = set(os.listdir(path.join(self.context.topdir, "tests", "unit"))) - set(['.DS_Store'])
in_crate_packages += ["selectors"]