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

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

Issue 13827002: [chromedriver] Run tests against 27. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable a failed test on Win7. Created 7 years, 8 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/test/chromedriver/continuous_archive.py ('k') | chrome/test/chromedriver/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/run_all_tests.py
diff --git a/chrome/test/chromedriver/run_all_tests.py b/chrome/test/chromedriver/run_all_tests.py
index 143897dcba74df5aa24e7080918971f3b276c2ef..741b3f2231cbb8c7df5bbdcfe282c864bc081f5f 100755
--- a/chrome/test/chromedriver/run_all_tests.py
+++ b/chrome/test/chromedriver/run_all_tests.py
@@ -96,6 +96,12 @@ def main():
parser.add_option(
'', '--android-package',
help='Application package name, if running tests on Android.')
+ # Option 'chrome-version' is for desktop only.
+ parser.add_option(
+ '', '--chrome-version',
+ help='Version of chrome, e.g., \'HEAD\', \'27\', or \'26\'.'
+ 'Default is to run tests against all of these versions.'
+ 'Notice: this option only applies to desktop.')
options, _ = parser.parse_args()
chromedriver_map = {
@@ -149,12 +155,18 @@ def main():
chrome_26 = continuous_archive.DownloadChrome(
continuous_archive.CHROME_26_REVISION, util.MakeTempDir())
+ chrome_27 = continuous_archive.DownloadChrome(
+ continuous_archive.CHROME_27_REVISION, util.MakeTempDir())
chrome_path_versions = [
{'path': chrome_tip_of_tree, 'version': 'HEAD'},
+ {'path': chrome_27, 'version': '27'},
{'path': chrome_26, 'version': '26'},
]
code = 0
for chrome in chrome_path_versions:
+ if options.chrome_version and chrome['version'] != options.chrome_version:
+ continue
+
code1 = RunPythonTests(chromedriver, chrome=chrome['path'],
chrome_version=chrome['version'])
code2 = RunJavaTests(chromedriver_server, chrome=chrome['path'],
« no previous file with comments | « chrome/test/chromedriver/continuous_archive.py ('k') | chrome/test/chromedriver/run_py_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698