Index: testing/scripts/checklicenses.py |
diff --git a/testing/scripts/checkdeps.py b/testing/scripts/checklicenses.py |
similarity index 68% |
copy from testing/scripts/checkdeps.py |
copy to testing/scripts/checklicenses.py |
index d6140dac127c1f9ebb0cf3af04003f756263aad6..43342d0254660446a56231ce55513c2e38b5ae8e 100755 |
--- a/testing/scripts/checkdeps.py |
+++ b/testing/scripts/checklicenses.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', 'checklicenses', |
+ 'checklicenses.py'), |
'--json', tempfile_path |
]) |
with open(tempfile_path) as f: |
- checkdeps_results = json.load(f) |
+ checklicenses_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 checklicenses_results: |
+ result_set.add((result['filename'], result['license'])) |
json.dump({ |
'valid': True, |