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

Side by Side Diff: build/android/test_runner.py

Issue 2039363002: [Android] Ensure perf test runner does not create shards for blacklisted devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix whitespace 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2013 The Chromium Authors. All rights reserved. 3 # Copyright 2013 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Runs all types of tests from one unified interface.""" 7 """Runs all types of tests from one unified interface."""
8 8
9 import argparse 9 import argparse
10 import collections 10 import collections
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 703
704 runner_factory, tests, devices = perf_setup.Setup( 704 runner_factory, tests, devices = perf_setup.Setup(
705 perf_options, active_devices) 705 perf_options, active_devices)
706 706
707 # shard=False means that each device will get the full list of tests 707 # shard=False means that each device will get the full list of tests
708 # and then each one will decide their own affinity. 708 # and then each one will decide their own affinity.
709 # shard=True means each device will pop the next test available from a queue, 709 # shard=True means each device will pop the next test available from a queue,
710 # which increases throughput but have no affinity. 710 # which increases throughput but have no affinity.
711 results, _ = test_dispatcher.RunTests( 711 results, _ = test_dispatcher.RunTests(
712 tests, runner_factory, devices, shard=False, test_timeout=None, 712 tests, runner_factory, devices, shard=False, test_timeout=None,
713 num_retries=args.num_retries) 713 num_retries=args.num_retries, blacklist_file=args.blacklist_file)
714 714
715 report_results.LogFull( 715 report_results.LogFull(
716 results=results, 716 results=results,
717 test_type='Perf', 717 test_type='Perf',
718 test_package='Perf') 718 test_package='Perf')
719 719
720 if args.json_results_file: 720 if args.json_results_file:
721 json_results.GenerateJsonResultsFile([results], args.json_results_file) 721 json_results.GenerateJsonResultsFile([results], args.json_results_file)
722 722
723 if perf_options.single_step: 723 if perf_options.single_step:
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 if e.is_infra_error: 977 if e.is_infra_error:
978 return constants.INFRA_EXIT_CODE 978 return constants.INFRA_EXIT_CODE
979 return constants.ERROR_EXIT_CODE 979 return constants.ERROR_EXIT_CODE
980 except: # pylint: disable=W0702 980 except: # pylint: disable=W0702
981 logging.exception('Unrecognized error occurred.') 981 logging.exception('Unrecognized error occurred.')
982 return constants.ERROR_EXIT_CODE 982 return constants.ERROR_EXIT_CODE
983 983
984 984
985 if __name__ == '__main__': 985 if __name__ == '__main__':
986 sys.exit(main()) 986 sys.exit(main())
OLDNEW
« build/android/pylib/base/test_dispatcher.py ('K') | « build/android/pylib/base/test_dispatcher.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698