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

Unified Diff: chrome/test/chromedriver/server/server.py

Issue 2871993004: [Chromedriver] Do not pass --verbose in testDisablingDriverLogsSuppressesChromeDriverLog. (Closed)
Patch Set: Created 3 years, 7 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 | chrome/test/chromedriver/test/run_py_tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/server/server.py
diff --git a/chrome/test/chromedriver/server/server.py b/chrome/test/chromedriver/server/server.py
index 2023e2b03e0a8c724f450c11de0dd8534793894a..801e0425910bd8fc3643ec10cffe7850c69362e5 100644
--- a/chrome/test/chromedriver/server/server.py
+++ b/chrome/test/chromedriver/server/server.py
@@ -13,7 +13,7 @@ import urllib2
class Server(object):
"""A running ChromeDriver server."""
- def __init__(self, exe_path, log_path=None):
+ def __init__(self, exe_path, log_path=None, verbose=True):
"""Starts the ChromeDriver server and waits for it to be ready.
Args:
@@ -27,8 +27,10 @@ class Server(object):
port = self._FindOpenPort()
chromedriver_args = [exe_path, '--port=%d' % port]
- if log_path:
- chromedriver_args.extend(['--verbose', '--log-path=%s' % log_path])
+ if not verbose and log_path:
johnchen 2017/05/11 23:37:11 I would organize the code a little differently, so
gmanikpure 2017/05/11 23:42:46 Thanks for the suggestion, John. I will make the c
gmanikpure 2017/05/12 01:29:11 Done. Please take a look. Thanks.
+ chromedriver_args.extend(['--log-path=%s' %log_path])
+ elif verbose and log_path:
+ chromedriver_args.extend(['--verbose','--log-path=%s' %log_path])
self._process = subprocess.Popen(chromedriver_args)
self._url = 'http://127.0.0.1:%d' % port
if self._process is None:
« no previous file with comments | « no previous file | chrome/test/chromedriver/test/run_py_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698