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

Side by Side Diff: scripts/slave/recipe_modules/chromium_tests/steps.py

Issue 2071673002: [Android] Support --timeout-scale for generated instrumentation tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | scripts/slave/recipes/chromium.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium 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 import re 5 import re
6 import string 6 import string
7 7
8 8
9 class Test(object): 9 class Test(object):
10 """ 10 """
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 swarming_dimension_sets = swarming_spec.get('dimension_sets') 500 swarming_dimension_sets = swarming_spec.get('dimension_sets')
501 swarming_priority = swarming_spec.get('priority_adjustment') 501 swarming_priority = swarming_spec.get('priority_adjustment')
502 swarming_expiration = swarming_spec.get('expiration') 502 swarming_expiration = swarming_spec.get('expiration')
503 if use_swarming and swarming_dimension_sets: 503 if use_swarming and swarming_dimension_sets:
504 for dimensions in swarming_dimension_sets: 504 for dimensions in swarming_dimension_sets:
505 # TODO(stip): Swarmify instrumentation tests 505 # TODO(stip): Swarmify instrumentation tests
506 pass 506 pass
507 else: 507 else:
508 yield AndroidInstrumentationTest( 508 yield AndroidInstrumentationTest(
509 test_name, 509 test_name,
510 compile_targets=test.get('override_compile_targets', None)) 510 compile_targets=test.get('override_compile_targets'),
511 timeout_scale=test.get('timeout_scale'))
511 512
512 513
513 def generate_junit_test(api, chromium_tests_api, mastername, buildername, 514 def generate_junit_test(api, chromium_tests_api, mastername, buildername,
514 test_spec, bot_update_step, enable_swarming=False, 515 test_spec, bot_update_step, enable_swarming=False,
515 swarming_dimensions=None, 516 swarming_dimensions=None,
516 scripts_compile_targets=None): 517 scripts_compile_targets=None):
517 for test in test_spec.get(buildername, {}).get('junit_tests', []): 518 for test in test_spec.get(buildername, {}).get('junit_tests', []):
518 yield AndroidJunitTest(str(test['test'])) 519 yield AndroidJunitTest(str(test['test']))
519 520
520 521
(...skipping 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after
1860 def run(self, api, suffix, test_filter=None): 1861 def run(self, api, suffix, test_filter=None):
1861 api.chromium_android.coverage_report(upload=False) 1862 api.chromium_android.coverage_report(upload=False)
1862 api.chromium_android.get_changed_lines_for_revision() 1863 api.chromium_android.get_changed_lines_for_revision()
1863 api.chromium_android.incremental_coverage_report() 1864 api.chromium_android.incremental_coverage_report()
1864 1865
1865 1866
1866 GOMA_TESTS = [ 1867 GOMA_TESTS = [
1867 GTestTest('base_unittests'), 1868 GTestTest('base_unittests'),
1868 GTestTest('content_unittests'), 1869 GTestTest('content_unittests'),
1869 ] 1870 ]
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipes/chromium.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698