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

Side by Side Diff: scripts/slave/recipe_modules/chromium_android/api.py

Issue 1574943003: add instrumentation tests to cloud bot (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 11 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/recipe_modules/chromium_android/config.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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 contextlib 5 import contextlib
6 import datetime 6 import datetime
7 import json 7 import json
8 import os 8 import os
9 import re 9 import re
10 import urllib 10 import urllib
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 os.remove(report) 810 os.remove(report)
811 """, 811 """,
812 args=[self.m.path['checkout'].join('out', 812 args=[self.m.path['checkout'].join('out',
813 self.m.chromium.c.BUILD_CONFIG, 813 self.m.chromium.c.BUILD_CONFIG,
814 'test_logs', 814 'test_logs',
815 '*.log')], 815 '*.log')],
816 ) 816 )
817 817
818 def common_tests_setup_steps(self, perf_setup=False): 818 def common_tests_setup_steps(self, perf_setup=False):
819 if self.c.gce_setup: 819 if self.c.gce_setup:
820 self.launch_gce_instances(snapshot=self.c.gce_snapshot) 820 self.launch_gce_instances(snapshot=self.c.gce_snapshot, count=self.c.gce_c ount)
821 self.spawn_logcat_monitor() 821 self.spawn_logcat_monitor()
822 self.provision_devices(emulators=True) 822 self.provision_devices(emulators=True)
823 else: 823 else:
824 self.spawn_logcat_monitor() 824 self.spawn_logcat_monitor()
825 self.authorize_adb_devices() 825 self.authorize_adb_devices()
826 self.device_status_check() 826 self.device_status_check()
827 if perf_setup: 827 if perf_setup:
828 kwargs = { 828 kwargs = {
829 'min_battery_level': 95, 829 'min_battery_level': 95,
830 'disable_network': True, 830 'disable_network': True,
831 'disable_java_debug': True, 831 'disable_java_debug': True,
832 'max_battery_temp': 350} 832 'max_battery_temp': 350}
833 else: 833 else:
834 kwargs = {} 834 kwargs = {}
835 self.provision_devices(**kwargs) 835 self.provision_devices(**kwargs)
836 if self.m.chromium.c.gyp_env.GYP_DEFINES.get('asan', 0) == 1: 836 if self.m.chromium.c.gyp_env.GYP_DEFINES.get('asan', 0) == 1:
837 self.asan_device_setup() 837 self.asan_device_setup()
838 838
839 self.spawn_device_monitor() 839 self.spawn_device_monitor()
840 840
841 def common_tests_final_steps(self, logcat_gs_bucket=None): 841 def common_tests_final_steps(self, logcat_gs_bucket=None):
842 if not self.c.gce_setup: 842 if not self.c.gce_setup:
843 self.shutdown_device_monitor() 843 self.shutdown_device_monitor()
844 self.logcat_dump(gs_bucket=logcat_gs_bucket) 844 self.logcat_dump(gs_bucket=logcat_gs_bucket)
845 self.stack_tool_steps() 845 self.stack_tool_steps()
846 if self.c.gce_setup: 846 if self.c.gce_setup:
847 self.shutdown_gce_instances() 847 self.shutdown_gce_instances(count=self.c.gce_count)
848 self.test_report() 848 self.test_report()
849 849
850 def run_bisect_script(self, extra_src='', path_to_config='', **kwargs): 850 def run_bisect_script(self, extra_src='', path_to_config='', **kwargs):
851 self.m.step('prepare bisect perf regression', 851 self.m.step('prepare bisect perf regression',
852 [self.m.path['checkout'].join('tools', 852 [self.m.path['checkout'].join('tools',
853 'prepare-bisect-perf-regression.py'), 853 'prepare-bisect-perf-regression.py'),
854 '-w', self.m.path['slave_build']]) 854 '-w', self.m.path['slave_build']])
855 855
856 args = [] 856 args = []
857 if extra_src: 857 if extra_src:
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1114 def test_runner(self, step_name, args=None, **kwargs): 1114 def test_runner(self, step_name, args=None, **kwargs):
1115 """Wrapper for the python testrunner script. 1115 """Wrapper for the python testrunner script.
1116 1116
1117 Args: 1117 Args:
1118 step_name: Name of the step. 1118 step_name: Name of the step.
1119 args: Testrunner arguments. 1119 args: Testrunner arguments.
1120 """ 1120 """
1121 with self.handle_exit_codes(): 1121 with self.handle_exit_codes():
1122 return self.m.python( 1122 return self.m.python(
1123 step_name, self.c.test_runner, args, **kwargs) 1123 step_name, self.c.test_runner, args, **kwargs)
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/chromium_android/config.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698