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

Unified Diff: tools/checkperms/checkperms.py

Issue 1374373007: Make checkperms.py --bare also return failure reason (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/checkperms/checkperms.py
diff --git a/tools/checkperms/checkperms.py b/tools/checkperms/checkperms.py
index 604c7f7dcf30050c417ea84a9299555d29559d20..1be437e6101cd63328fba513cf307c75bf421a0f 100755
--- a/tools/checkperms/checkperms.py
+++ b/tools/checkperms/checkperms.py
@@ -461,11 +461,9 @@ Examples:
json.dump(errors, f)
if errors:
- if options.bare:
- print '\n'.join(e['full_path'] for e in errors)
- else:
+ if not options.bare:
print '\nFAILED\n'
- print '\n'.join('%s: %s' % (e['full_path'], e['error']) for e in errors)
+ print '\n'.join('%s: %s' % (e['full_path'], e['error']) for e in errors)
return 1
if not options.bare:
print '\nSUCCESS\n'
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698