mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #9277 - PythonNut:master, r=Wafflespeanut
Call WPT lint directly in tidy, fixes #9189 This should be fairly straightforward. :) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9277) <!-- Reviewable:end -->
This commit is contained in:
commit
9c8382cbde
1 changed files with 6 additions and 5 deletions
|
@ -13,6 +13,7 @@ import fnmatch
|
|||
import itertools
|
||||
import re
|
||||
import StringIO
|
||||
import site
|
||||
import subprocess
|
||||
import sys
|
||||
from licenseck import licenses
|
||||
|
@ -556,11 +557,11 @@ def check_reftest_html_files_in_basic_list(reftest_dir):
|
|||
|
||||
def check_wpt_lint_errors():
|
||||
wpt_working_dir = os.path.abspath(os.path.join(".", "tests", "wpt", "web-platform-tests"))
|
||||
lint_cmd = os.path.join(wpt_working_dir, "lint")
|
||||
try:
|
||||
subprocess.check_call(lint_cmd, cwd=wpt_working_dir) # Must run from wpt's working dir
|
||||
except subprocess.CalledProcessError as e:
|
||||
yield ("WPT Lint Tool", "", "lint error(s) in Web Platform Tests: exit status {0}".format(e.returncode))
|
||||
site.addsitedir(wpt_working_dir)
|
||||
from tools.lint import lint
|
||||
returncode = lint.main()
|
||||
if returncode:
|
||||
yield ("WPT Lint Tool", "", "lint error(s) in Web Platform Tests: exit status {0}".format(returncode))
|
||||
|
||||
|
||||
def get_file_list(directory, only_changed_files=False):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue