diff options
author | nirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-11 06:10:36 +0000 |
---|---|---|
committer | nirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-11 06:10:36 +0000 |
commit | 76b6d6a9d0bfd4331cd13c77aede5df81bccda97 (patch) | |
tree | 2e10e05295be96d33d58beb3325dbebdbd05ee11 /chrome/test/pyautolib | |
parent | db2a40cb3b29bd4a953fe604fdbcbecaf644a92b (diff) | |
download | chromium_src-76b6d6a9d0bfd4331cd13c77aede5df81bccda97.zip chromium_src-76b6d6a9d0bfd4331cd13c77aede5df81bccda97.tar.gz chromium_src-76b6d6a9d0bfd4331cd13c77aede5df81bccda97.tar.bz2 |
Add an alternative way to specify extra chrome flags via env for testing
This is to work around a problem where passed command line flags (thru pyauto flag --chrome-flags) will not take effect on win.
Review URL: http://codereview.chromium.org/7005007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84939 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/pyautolib')
-rw-r--r-- | chrome/test/pyautolib/pyauto.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py index 60d2166..488b47b 100644 --- a/chrome/test/pyautolib/pyauto.py +++ b/chrome/test/pyautolib/pyauto.py @@ -3522,12 +3522,7 @@ class Main(object): chrome_flags = self._options.chrome_flags # Set CHROME_HEADLESS. It enables crash reporter on posix. os.putenv('CHROME_HEADLESS', '1') - # --dom-automation added in PyUITestBase::PyUITestBase() - - suite_args.append('--extra-chrome-flags=%s' % chrome_flags) - # Note: The suite_args passed here are ignored on windows since it - # overrides to obtain the command line for the current process directly. - # Refer CommandLine::Init(). + os.putenv('EXTRA_CHROME_FLAGS', chrome_flags) pyauto_suite = PyUITestSuite(suite_args) test_names = self._ExpandTestNames(self._args) test_names *= self._options.repeat |