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

Unified Diff: chrome/test/pyautolib/pyauto.py

Issue 2873073: Enable crash reporting by default with PyAuto on Mac/Linux (Closed)
Patch Set: Created 10 years, 5 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 | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/pyautolib/pyauto.py
diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py
index 4cd634f61bfedfd172a43379060afb3dd23e8bfd..17bf46b5191763ce218629375d996fbdbf45c2a6 100644
--- a/chrome/test/pyautolib/pyauto.py
+++ b/chrome/test/pyautolib/pyauto.py
@@ -60,7 +60,7 @@ def _LocateBinDirs():
os.pardir, os.pardir, 'third_party'),
script_dir,
]
- sys.path += bin_dirs.get(sys.platform, []) + deps_dirs
+ sys.path += map(os.path.normpath, bin_dirs.get(sys.platform, []) + deps_dirs)
_LocateBinDirs()
@@ -1304,7 +1304,7 @@ class Main(object):
else:
args = self._LoadTestNamesFrom(pyauto_tests_file)
args = args * self._options.repeat
- logging.debug("Loading tests from %s", args)
+ logging.debug("Loading %d tests from %s", len(args), args)
loaded_tests = unittest.defaultTestLoader.loadTestsFromNames(args)
return loaded_tests
@@ -1336,8 +1336,12 @@ class Main(object):
raw_input('Attach debugger to process %s and hit <enter> ' % os.getpid())
suite_args = [sys.argv[0]]
- if self._options.chrome_flags:
- suite_args.append('--extra-chrome-flags=' + self._options.chrome_flags)
+ chrome_flags = self._options.chrome_flags
+ # Enable crash reporter by default on posix. It's already enabled on win.
John Grabowski 2010/07/27 23:35:30 If already enabled by default on windows (in the b
Nirnimesh 2010/07/28 01:14:03 The win flow is somewhat different, esp after the
+ if PyUITest.IsPosix():
+ chrome_flags += ' --enable-crash-reporter'
+ if chrome_flags:
+ suite_args.append('--extra-chrome-flags=%s' % chrome_flags)
pyauto_suite = PyUITestSuite(suite_args)
loaded_tests = self._LoadTests(self._args)
pyauto_suite.addTests(loaded_tests)
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698