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.
15 with common
.temporary_file() as tempfile_path
:
16 rc
= common
.run_command([
17 os
.path
.join(common
.SRC_DIR
, 'tools', 'checkperms', 'checkperms.py'),
18 '--root', args
.paths
['checkout'],
19 '--json', tempfile_path
22 with
open(tempfile_path
) as f
:
23 checkperms_results
= json
.load(f
)
26 for result
in checkperms_results
:
27 result_set
.add((result
['rel_path'], result
['error']))
31 'failures': ['%s: %s' % (r
[0], r
[1]) for r
in result_set
],
37 def main_compile_targets(args
):
38 json
.dump([], args
.output
)
41 if __name__
== '__main__':
44 'compile_targets': main_compile_targets
,
46 sys
.exit(common
.run_script(sys
.argv
[1:], funcs
))