mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Expand tidy to lint parts of /tests/wpt
This commit is contained in:
parent
1e3010e4cd
commit
d1824aea48
8 changed files with 35 additions and 19 deletions
|
@ -2,14 +2,12 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
#!/usr/bin/env python
|
||||
|
||||
import argparse
|
||||
import os
|
||||
import sys
|
||||
|
||||
here = os.path.split(__file__)[0]
|
||||
|
||||
|
||||
def wpt_path(*args):
|
||||
return os.path.join(here, *args)
|
||||
|
||||
|
@ -17,6 +15,7 @@ def wpt_path(*args):
|
|||
sys.path.append(wpt_path("harness"))
|
||||
from wptrunner import wptcommandline
|
||||
|
||||
|
||||
def update_tests(**kwargs):
|
||||
from wptrunner import update
|
||||
|
||||
|
@ -26,11 +25,13 @@ def update_tests(**kwargs):
|
|||
rv = update.run_update(logger, **kwargs)
|
||||
return 0 if rv is update.update.exit_clean else 1
|
||||
|
||||
|
||||
def set_defaults(kwargs):
|
||||
if kwargs["config"] is None:
|
||||
kwargs["config"] = wpt_path('config_css.ini')
|
||||
wptcommandline.set_from_config(kwargs)
|
||||
|
||||
|
||||
def main():
|
||||
parser = wptcommandline.create_parser_update()
|
||||
kwargs = vars(parser.parse_args())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue