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

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: 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
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..737fa345d8737afd20cb2a9179adf361594e5b41 100755
--- a/chrome/test/chromedriver/run_all_tests.py
+++ b/chrome/test/chromedriver/run_all_tests.py
@@ -96,6 +96,10 @@ def main():
parser.add_option(
'', '--android-package',
help='Application package name, if running tests on Android.')
+ 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.')
kkania 2013/04/08 23:34:21 Maybe add something in comment about this only ref
chrisgao (Use stgao instead) 2013/04/08 23:52:54 Done.
options, _ = parser.parse_args()
chromedriver_map = {
@@ -149,12 +153,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'],

Powered by Google App Engine
This is Rietveld 408576698