| Index: testing/scripts/checkperms.py
|
| diff --git a/testing/scripts/checkdeps.py b/testing/scripts/checkperms.py
|
| similarity index 68%
|
| copy from testing/scripts/checkdeps.py
|
| copy to testing/scripts/checkperms.py
|
| index d6140dac127c1f9ebb0cf3af04003f756263aad6..17e32c4f62066fc49f2461eb4588017095130e72 100755
|
| --- a/testing/scripts/checkdeps.py
|
| +++ b/testing/scripts/checkperms.py
|
| @@ -1,5 +1,5 @@
|
| #!/usr/bin/env python
|
| -# Copyright 2014 The Chromium Authors. All rights reserved.
|
| +# Copyright 2015 The Chromium Authors. All rights reserved.
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| @@ -14,17 +14,17 @@ import common
|
| def main_run(args):
|
| with common.temporary_file() as tempfile_path:
|
| rc = common.run_command([
|
| - os.path.join(common.SRC_DIR, 'buildtools', 'checkdeps', 'checkdeps.py'),
|
| + os.path.join(common.SRC_DIR, 'tools', 'checkperms', 'checkperms.py'),
|
| + '--root', args.paths['checkout'],
|
| '--json', tempfile_path
|
| ])
|
|
|
| with open(tempfile_path) as f:
|
| - checkdeps_results = json.load(f)
|
| + checkperms_results = json.load(f)
|
|
|
| result_set = set()
|
| - for result in checkdeps_results:
|
| - for violation in result['violations']:
|
| - result_set.add((result['dependee_path'], violation['include_path']))
|
| + for result in checkperms_results:
|
| + result_set.add((result['rel_path'], result['error']))
|
|
|
| json.dump({
|
| 'valid': True,
|
|
|