From 554436b584f8e49c7ede4d4a0b3dd0e4b49379bb Mon Sep 17 00:00:00 2001 From: "nirnimesh@chromium.org" Date: Wed, 29 Sep 2010 19:18:49 +0000 Subject: Use CHROME_HEADLESS to enable crash reporter in pyauto on linux/mac Enable the disabled pyauto test. BUG=57189 TEST=crash_reporter.py on official build Review URL: http://codereview.chromium.org/3530003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60971 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/test/functional/PYAUTO_TESTS | 1 - chrome/test/pyautolib/pyauto.py | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'chrome/test') diff --git a/chrome/test/functional/PYAUTO_TESTS b/chrome/test/functional/PYAUTO_TESTS index 55e1ad8..b79dadbf 100644 --- a/chrome/test/functional/PYAUTO_TESTS +++ b/chrome/test/functional/PYAUTO_TESTS @@ -69,7 +69,6 @@ # codesign tests should run *after* signing. crbug.com/50481 '-codesign', '-content.ContentTest.testThreeWindows', # crbug.com/47457 - '-crash_reporter', # --enable-crash-reporter not working. crbug.com/57189 ], 'linux': [ # linux != chromeos diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py index 7b20154..3fed9f71 100644 --- a/chrome/test/pyautolib/pyauto.py +++ b/chrome/test/pyautolib/pyauto.py @@ -1670,12 +1670,8 @@ class Main(object): suite_args = [sys.argv[0]] chrome_flags = self._options.chrome_flags - # Enable crash reporter by default on posix. - # On windows, the choice to enable/disable crash reporting is made when - # downloading the installer. - # TODO(nirnimesh): Figure out a way to control this from here on Win too. - if PyUITest.IsPosix(): - chrome_flags += ' --enable-crash-reporter' + # 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) -- cgit v1.1