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

Unified Diff: tools/chrome_proxy/webdriver/common.py

Issue 2570433008: Bake in Python's unittest command line args. (Closed)
Patch Set: Fix git issues Created 4 years 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 | tools/chrome_proxy/webdriver/simple_smoke.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/chrome_proxy/webdriver/common.py
diff --git a/tools/chrome_proxy/webdriver/common.py b/tools/chrome_proxy/webdriver/common.py
index 60cdd7d07e468c710d6ca88381de2de87479109d..5d8ef96bc12aceb662ad0c2d66a3312fe6b55016 100644
--- a/tools/chrome_proxy/webdriver/common.py
+++ b/tools/chrome_proxy/webdriver/common.py
@@ -42,6 +42,16 @@ def ParseFlags():
parser.add_argument('chrome_driver', nargs=1, type=str, help='The path to '
'the ChromeDriver executable. If not given, the default system chrome '
'will be used.')
+ parser.add_argument('-b', '--buffer', help='The standard output and standard '
+ 'error streams are buffered during the test run. Output during a passing '
+ 'test is discarded. Output is echoed normally on test fail or error and is '
+ 'added to the failure messages.', action='store_true')
+ parser.add_argument('-c', '--catch', help='Control-C during the test run '
+ 'waits for the current test to end and then reports all the results so '
+ 'far. A second Control-C raises the normal KeyboardInterrupt exception.',
+ action='store_true')
+ parser.add_argument('-f', '--failfast', help='Stop the test run on the first '
+ 'error or failure.', action='store_true')
# TODO(robertogden): Log sys.argv here.
return parser.parse_args(sys.argv[1:])
« no previous file with comments | « no previous file | tools/chrome_proxy/webdriver/simple_smoke.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698