Bug 1385916 - Get wpt mozlint integration to forward files to be linted, r=jgraham
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Mon, 31 Jul 2017 11:40:27 -0400
changeset 420748 8c881a1185673e8a6bcb9481177663604e442d39
parent 420747 7ac289e62574bc5c0758874c7f14d84edd5bd178
child 420749 19ee1751ecc3fef63393a233ecc47a2a7b5c9e41
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgraham
bugs1385916
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1385916 - Get wpt mozlint integration to forward files to be linted, r=jgraham MozReview-Commit-ID: I2PYtsef9Y3
tools/lint/wpt/wpt.py
--- a/tools/lint/wpt/wpt.py
+++ b/tools/lint/wpt/wpt.py
@@ -22,17 +22,17 @@ def lint(files, config, **kwargs):
             data = json.loads(line)
         except ValueError:
             return
         data["level"] = "error"
         data["path"] = os.path.relpath(os.path.join(tests_dir, data["path"]), kwargs['root'])
         results.append(result.from_config(config, **data))
 
     path = os.path.join(tests_dir, "lint")
-    proc = ProcessHandler([path, "--json"], env=os.environ,
+    proc = ProcessHandler([path, "--json"] + files, env=os.environ,
                           processOutputLine=process_line)
     proc.run()
     try:
         proc.wait()
     except KeyboardInterrupt:
         proc.kill()
 
     return results