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 423150 8c881a1185673e8a6bcb9481177663604e442d39
parent 423149 7ac289e62574bc5c0758874c7f14d84edd5bd178
child 423151 19ee1751ecc3fef63393a233ecc47a2a7b5c9e41
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [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