| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import os.path | 6 import os.path |
| 7 import re | 7 import re |
| 8 import shutil | 8 import shutil |
| 9 import sys | 9 import sys |
| 10 import tempfile | 10 import tempfile |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 # it actually turns off logging to the Buildbot logs on | 268 # it actually turns off logging to the Buildbot logs on |
| 269 # Windows (see http://crbug.com/169941). | 269 # Windows (see http://crbug.com/169941). |
| 270 '--disable-web-resources', | 270 '--disable-web-resources', |
| 271 '--disable-preconnect', | 271 '--disable-preconnect', |
| 272 # This is speculative, sync should not occur with a clean profile. | 272 # This is speculative, sync should not occur with a clean profile. |
| 273 '--disable-sync', | 273 '--disable-sync', |
| 274 # This prevents Chrome from making "hidden" network requests at | 274 # This prevents Chrome from making "hidden" network requests at |
| 275 # startup. These requests could be a source of non-determinism, | 275 # startup. These requests could be a source of non-determinism, |
| 276 # and they also add noise to the netlogs. | 276 # and they also add noise to the netlogs. |
| 277 '--dns-prefetch-disable', | 277 '--dns-prefetch-disable', |
| 278 '--no-first-run', | 278 '--skip-first-run', |
| 279 '--no-default-browser-check', | 279 '--no-default-browser-check', |
| 280 '--log-level=1', | 280 '--log-level=1', |
| 281 '--safebrowsing-disable-auto-update', | 281 '--safebrowsing-disable-auto-update', |
| 282 # Suppress metrics reporting. This prevents misconfigured bots, | 282 # Suppress metrics reporting. This prevents misconfigured bots, |
| 283 # people testing at their desktop, etc from poisoning the UMA data. | 283 # people testing at their desktop, etc from poisoning the UMA data. |
| 284 '--metrics-recording-only', | 284 '--metrics-recording-only', |
| 285 # Chrome explicitly blacklists some ports as "unsafe" because | 285 # Chrome explicitly blacklists some ports as "unsafe" because |
| 286 # certain protocols use them. Chrome gives an error like this: | 286 # certain protocols use them. Chrome gives an error like this: |
| 287 # Error 312 (net::ERR_UNSAFE_PORT): Unknown error | 287 # Error 312 (net::ERR_UNSAFE_PORT): Unknown error |
| 288 # Unfortunately, the browser tester can randomly choose a | 288 # Unfortunately, the browser tester can randomly choose a |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 '--trace-children=yes', | 331 '--trace-children=yes', |
| 332 '--nacl-file=%s' % (self.options.files[0],), | 332 '--nacl-file=%s' % (self.options.files[0],), |
| 333 '--ignore=../tools/valgrind/tsan/ignores.txt', | 333 '--ignore=../tools/valgrind/tsan/ignores.txt', |
| 334 '--suppressions=../tools/valgrind/tsan/suppressions.txt', | 334 '--suppressions=../tools/valgrind/tsan/suppressions.txt', |
| 335 '--log-file=%s/log.%%p' % (self.tool_log_dir,)] + cmd | 335 '--log-file=%s/log.%%p' % (self.tool_log_dir,)] + cmd |
| 336 elif self.options.tool != None: | 336 elif self.options.tool != None: |
| 337 raise LaunchFailure('Invalid tool name "%s"' % (self.options.tool,)) | 337 raise LaunchFailure('Invalid tool name "%s"' % (self.options.tool,)) |
| 338 cmd.extend(self.options.browser_flags) | 338 cmd.extend(self.options.browser_flags) |
| 339 cmd.append(url) | 339 cmd.append(url) |
| 340 return cmd | 340 return cmd |
| OLD | NEW |