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

Unified Diff: tests/main_test.py

Issue 47623004: chromium-status: tests: handle -vv and -vvv flags (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/chromium-status
Patch Set: Created 7 years, 1 month 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: tests/main_test.py
diff --git a/tests/main_test.py b/tests/main_test.py
index 8fe5462cb312e8750a78900c9351d8597df82434..f64912643055d98d5f5da1c50fd9f561e18db7af 100755
--- a/tests/main_test.py
+++ b/tests/main_test.py
@@ -359,7 +359,7 @@ class AccessControl(TestCase):
if __name__ == '__main__':
- logging.basicConfig(level=
- [logging.WARNING, logging.INFO, logging.DEBUG][
- min(2, sys.argv.count('-v'))])
+ logging.basicConfig(level=[logging.WARNING, logging.INFO, logging.DEBUG][
+ min(2, sys.argv.count('-v') + (sys.argv.count('-vv') * 2) +
+ (sys.argv.count('-vvv') * 3))])
cmp 2013/11/04 22:27:48 Does optparse natively support this? If it does,
vapier 2013/11/04 22:30:23 shouldn't be hard to rewrite with standard optpars
unittest.main()
« 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