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

Side by Side Diff: server/site_tests/suite_Nightly/control.browsertest

Issue 3311008: commit (Closed) Base URL: http://git.chromium.org/git/autotest.git
Patch Set: patch Created 10 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « server/site_tests/suite_Nightly/control ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 AUTHOR = "Chrome OS Team" 5 AUTHOR = "Chrome OS Team"
6 NAME = "Nightly" 6 NAME = "Nightly"
7 TIME = "LONG" 7 TIME = "LONG"
8 TEST_CATEGORY = "Functional" 8 TEST_CATEGORY = "Functional"
9 TEST_CLASS = "suite" 9 TEST_CLASS = "suite"
10 TEST_TYPE = "server" 10 TEST_TYPE = "server"
11 11
12 DOC = """ 12 DOC = """
13 This test suite runs automated tests that should all pass and that, together 13 This test suite runs automated tests that should all pass and that, together
14 with the BuildVerify suite, verify that all major features in the build are 14 with the BuildVerify suite, verify that all major features in the build are
15 fully functional. These are meant to run nightly in less than 8 hours. 15 fully functional. These are meant to run nightly in less than 8 hours.
16 """ 16 """
17 17
18 def run(machine): 18 # List of client tests with parameters
19 TESTS = [
20 ('desktopui_BrowserTest', {}),
21 ('desktopui_SyncIntegrationTests', {}),
22 ]
23
24 # A dict which holds {machine: [(test, argv), (test, argv), ...]}
25 test_dict = {}
26
27 # Assign tests with its argv to machines in a round-robin way.
28 index = 0
29 for test_with_argv in TESTS:
30 m_index = index % len(machines)
31 test_list = test_dict.setdefault(machines[m_index], [])
32 test_list.append(test_with_argv)
33 index += 1
34
35 def run_assigned_tests(machine):
19 client = hosts.create_host(machine) 36 client = hosts.create_host(machine)
20 client_at = autotest.Autotest(client) 37 client_at = autotest.Autotest(client)
21 client_at.run_test('desktopui_BrowserTest') 38 test_list = test_dict[machine]
39 for test, argv in test_list:
40 client_at.run_test(test, **argv)
22 41
23 job.parallel_on_machines(run, machines) 42 job.parallel_on_machines(run_assigned_tests, machines)
OLDNEW
« no previous file with comments | « server/site_tests/suite_Nightly/control ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698