Commit 9de3051e authored by John Chen's avatar John Chen Committed by Commit Bot

[ChromeDriver] Enable CQ tests on Mac/Windows

Previously, the commit queue only runs ChromeDriver tests on Linux.
This CL expands the test to other desktop platforms, including Mac
and Windows.

Bug: 793370
Change-Id: I2a28d3a5c8371edc28566010739681acfac41c21
Reviewed-on: https://chromium-review.googlesource.com/881641Reviewed-by: default avatarCaleb Rouleau <crouleau@chromium.org>
Reviewed-by: default avatarJohn Budorick <jbudorick@chromium.org>
Commit-Queue: John Chen <johnchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#531399}
parent 0d4683df
......@@ -347,6 +347,11 @@ group("chromedriver_py_tests") {
data_deps = [
"//chrome/test/chromedriver",
]
if (is_win) {
# On Windows, the following target produces the final chrome.exe
data_deps += [ "//chrome:reorder_imports" ]
}
}
test("chromedriver_unittests") {
......
......@@ -2711,9 +2711,16 @@ if __name__ == '__main__':
options, args = parser.parse_args()
if options.chromedriver is None:
parser.error('--chromedriver is required.\n' +
'Please run "%s --help" for help' % __file__)
options.chromedriver = util.GetAbsolutePathOfUserPath(options.chromedriver)
if not options.chromedriver or not os.path.exists(options.chromedriver):
parser.error('chromedriver is required or the given path is invalid.' +
if (not os.path.exists(options.chromedriver) and
util.GetPlatformName() == 'win' and
not options.chromedriver.lower().endswith('.exe')):
options.chromedriver = options.chromedriver + '.exe'
if not os.path.exists(options.chromedriver):
parser.error('Path given by --chromedriver is invalid.\n' +
'Please run "%s --help" for help' % __file__)
global _CHROMEDRIVER_BINARY
......
......@@ -7552,6 +7552,16 @@
}
],
"isolated_scripts": [
{
"args": [
"--filter=__main__.ChromeDriverTest.testLoadUrl"
],
"isolate_name": "chromedriver_py_tests",
"name": "chromedriver_py_tests",
"swarming": {
"can_use_on_swarming_builders": true
}
},
{
"isolate_name": "telemetry_gpu_unittests",
"name": "telemetry_gpu_unittests",
......
......@@ -1694,6 +1694,16 @@
}
],
"isolated_scripts": [
{
"args": [
"--filter=__main__.ChromeDriverTest.testLoadUrl"
],
"isolate_name": "chromedriver_py_tests",
"name": "chromedriver_py_tests",
"swarming": {
"can_use_on_swarming_builders": false
}
},
{
"isolate_name": "telemetry_gpu_unittests",
"name": "telemetry_gpu_unittests",
......@@ -2319,6 +2329,16 @@
}
],
"isolated_scripts": [
{
"args": [
"--filter=__main__.ChromeDriverTest.testLoadUrl"
],
"isolate_name": "chromedriver_py_tests",
"name": "chromedriver_py_tests",
"swarming": {
"can_use_on_swarming_builders": true
}
},
{
"isolate_name": "telemetry_gpu_unittests",
"name": "telemetry_gpu_unittests",
......@@ -5997,6 +6017,16 @@
}
],
"isolated_scripts": [
{
"args": [
"--filter=__main__.ChromeDriverTest.testLoadUrl"
],
"isolate_name": "chromedriver_py_tests",
"name": "chromedriver_py_tests",
"swarming": {
"can_use_on_swarming_builders": true
}
},
{
"isolate_name": "telemetry_gpu_unittests",
"name": "telemetry_gpu_unittests",
......
......@@ -395,6 +395,16 @@
}
],
"isolated_scripts": [
{
"args": [
"--filter=__main__.ChromeDriverTest.testLoadUrl"
],
"isolate_name": "chromedriver_py_tests",
"name": "chromedriver_py_tests",
"swarming": {
"can_use_on_swarming_builders": true
}
},
{
"isolate_name": "telemetry_gpu_unittests",
"name": "telemetry_gpu_unittests",
......@@ -832,6 +842,16 @@
}
],
"isolated_scripts": [
{
"args": [
"--filter=__main__.ChromeDriverTest.testLoadUrl"
],
"isolate_name": "chromedriver_py_tests",
"name": "chromedriver_py_tests",
"swarming": {
"can_use_on_swarming_builders": true
}
},
{
"isolate_name": "telemetry_gpu_unittests",
"name": "telemetry_gpu_unittests",
......@@ -1269,6 +1289,16 @@
}
],
"isolated_scripts": [
{
"args": [
"--filter=__main__.ChromeDriverTest.testLoadUrl"
],
"isolate_name": "chromedriver_py_tests",
"name": "chromedriver_py_tests",
"swarming": {
"can_use_on_swarming_builders": true
}
},
{
"isolate_name": "telemetry_gpu_unittests",
"name": "telemetry_gpu_unittests",
......@@ -1720,6 +1750,16 @@
}
],
"isolated_scripts": [
{
"args": [
"--filter=__main__.ChromeDriverTest.testLoadUrl"
],
"isolate_name": "chromedriver_py_tests",
"name": "chromedriver_py_tests",
"swarming": {
"can_use_on_swarming_builders": true
}
},
{
"isolate_name": "content_shell_crash_test",
"name": "content_shell_crash_test",
......@@ -2157,6 +2197,16 @@
}
],
"isolated_scripts": [
{
"args": [
"--filter=__main__.ChromeDriverTest.testLoadUrl"
],
"isolate_name": "chromedriver_py_tests",
"name": "chromedriver_py_tests",
"swarming": {
"can_use_on_swarming_builders": true
}
},
{
"isolate_name": "telemetry_gpu_unittests",
"name": "telemetry_gpu_unittests",
......
......@@ -537,6 +537,16 @@
}
],
"isolated_scripts": [
{
"args": [
"--filter=__main__.ChromeDriverTest.testLoadUrl"
],
"isolate_name": "chromedriver_py_tests",
"name": "chromedriver_py_tests",
"swarming": {
"can_use_on_swarming_builders": true
}
},
{
"isolate_name": "metrics_python_tests",
"name": "metrics_python_tests",
......@@ -1706,6 +1716,16 @@
}
],
"isolated_scripts": [
{
"args": [
"--filter=__main__.ChromeDriverTest.testLoadUrl"
],
"isolate_name": "chromedriver_py_tests",
"name": "chromedriver_py_tests",
"swarming": {
"can_use_on_swarming_builders": true
}
},
{
"isolate_name": "content_shell_crash_test",
"name": "content_shell_crash_test",
......@@ -2258,6 +2278,16 @@
}
],
"isolated_scripts": [
{
"args": [
"--filter=__main__.ChromeDriverTest.testLoadUrl"
],
"isolate_name": "chromedriver_py_tests",
"name": "chromedriver_py_tests",
"swarming": {
"can_use_on_swarming_builders": true
}
},
{
"isolate_name": "telemetry_gpu_unittests",
"name": "telemetry_gpu_unittests",
......
......@@ -327,18 +327,6 @@
},
},
'chromedriver_py_tests_isolated_scripts': {
'chromedriver_py_tests': {
"args": [
# TODO(johnchen@chromium.org): As the initial step of adding
# ChromeDriver tests to commit queue, the following filter is used to
# enable a single test case as a smoke test. Many more test cases will
# be enabled in the future.
"--filter=__main__.ChromeDriverTest.testLoadUrl",
],
},
},
'chromium_android_asan_gtests': {
# TODO(kbr): reduce duplication among these tests, and with other
# test suites.
......@@ -757,6 +745,15 @@
},
'desktop_chromium_isolated_scripts': {
'chromedriver_py_tests': {
"args": [
# TODO(johnchen@chromium.org): As the initial step of adding
# ChromeDriver tests to commit queue, the following filter is used to
# enable a single test case as a smoke test. Many more test cases will
# be enabled in the future.
"--filter=__main__.ChromeDriverTest.testLoadUrl",
],
},
'content_shell_crash_test': {},
'metrics_python_tests': {},
'telemetry_gpu_unittests': {},
......@@ -1952,7 +1949,6 @@
],
'chromium_linux_isolated_scripts': [
'chromedriver_py_tests_isolated_scripts',
'desktop_chromium_isolated_scripts',
'linux_specific_chromium_isolated_scripts',
'telemetry_perf_unittests_isolated_scripts',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment