Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1660)

Unified Diff: testing/scripts/checkperms.py

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,
« shell/BUILD.gn ('K') | « testing/scripts/checklicenses.py ('k') | testing/test.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698