aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/servo_tidy/tidy.py
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2018-12-13 16:19:06 -0500
committerGitHub <noreply@github.com>2018-12-13 16:19:06 -0500
commit8d6fda6ca5cfb9e3f9f95f91fc05e301ab14cee8 (patch)
treeba71844faef9c58b947bb82a1d9bcbfc95debe14 /python/tidy/servo_tidy/tidy.py
parent9ff7de6a449d465936508c718b08b430af8921fa (diff)
downloadservo-8d6fda6ca5cfb9e3f9f95f91fc05e301ab14cee8.tar.gz
servo-8d6fda6ca5cfb9e3f9f95f91fc05e301ab14cee8.zip
Don't lint subdirectories of virtual manifest paths.
Diffstat (limited to 'python/tidy/servo_tidy/tidy.py')
-rw-r--r--python/tidy/servo_tidy/tidy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py
index 446db50feea..deb86e289c2 100644
--- a/python/tidy/servo_tidy/tidy.py
+++ b/python/tidy/servo_tidy/tidy.py
@@ -489,7 +489,7 @@ def check_manifest_dirs(config_file, print_text=True):
p = parser.parse(lines)
paths = rec_parse(wpt_path("web-platform-tests"), p)
for idx, path in enumerate(paths):
- if path.endswith("_mozilla") or path.endswith("_webgl"):
+ if '_mozilla' in path or '_webgl' in path:
continue
if not os.path.isdir(path):
yield(config_file, idx + 1, "Path in manifest was not found: {}".format(path))