Fix DependencyManager bug.
[chromium-blink-merge.git] / testing / scripts / webkit_lint.py
blobeeb9367099964777779197dcd86d2e564d08df24
1 #!/usr/bin/env python
2 # Copyright 2015 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
6 import json
7 import os
8 import sys
11 import common
14 def main_run(args):
15 with common.temporary_file() as tempfile_path:
16 rc = common.run_command([
17 sys.executable,
18 os.path.join(common.SRC_DIR, 'third_party', 'WebKit',
19 'Tools', 'Scripts', 'lint-test-expectations'),
20 '--json', tempfile_path
23 with open(tempfile_path) as f:
24 failures = json.load(f)
26 json.dump({
27 'valid': True,
28 'failures': failures,
29 }, args.output)
31 return rc
34 def main_compile_targets(args):
35 json.dump([], args.output)
38 if __name__ == '__main__':
39 funcs = {
40 'run': main_run,
41 'compile_targets': main_compile_targets,
43 sys.exit(common.run_script(sys.argv[1:], funcs))