ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / testing / scripts / webkit_lint.py
blobc33f87b9c9458292c5a34a26a751459940d36bc4
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 os.path.join(common.SRC_DIR, 'third_party', 'WebKit',
18 'Tools', 'Scripts', 'lint-test-expectations'),
19 '--json', tempfile_path
22 with open(tempfile_path) as f:
23 failures = json.load(f)
25 json.dump({
26 'valid': True,
27 'failures': failures,
28 }, args.output)
30 return rc
33 def main_compile_targets(args):
34 json.dump([], args.output)
37 if __name__ == '__main__':
38 funcs = {
39 'run': main_run,
40 'compile_targets': main_compile_targets,
42 sys.exit(common.run_script(sys.argv[1:], funcs))