OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 | 5 |
6 # pylint: disable=W0201 | 6 # pylint: disable=W0201 |
7 | 7 |
8 | 8 |
9 import copy | 9 import copy |
10 import default_flavor | 10 import default_flavor |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 112 |
113 def install(self): | 113 def install(self): |
114 """Run device-specific installation steps.""" | 114 """Run device-specific installation steps.""" |
115 prefix = self.device_path_join('skiabot', 'skia_') | 115 prefix = self.device_path_join('skiabot', 'skia_') |
116 self.device_dirs = default_flavor.DeviceDirs( | 116 self.device_dirs = default_flavor.DeviceDirs( |
117 dm_dir=prefix + 'dm', | 117 dm_dir=prefix + 'dm', |
118 perf_data_dir=prefix + 'perf', | 118 perf_data_dir=prefix + 'perf', |
119 resource_dir=prefix + 'resources', | 119 resource_dir=prefix + 'resources', |
120 images_dir=prefix + 'images', | 120 images_dir=prefix + 'images', |
121 skp_dir=prefix + 'skp/skps', | 121 skp_dir=prefix + 'skp/skps', |
| 122 svg_dir=prefix + 'svg/svgs', |
122 tmp_dir=prefix + 'tmp_dir') | 123 tmp_dir=prefix + 'tmp_dir') |
123 | 124 |
124 self.m.run( | 125 self.m.run( |
125 self.m.step, | 126 self.m.step, |
126 name='install iOSShell', | 127 name='install iOSShell', |
127 cmd=[self.ios_bin.join('ios_install')], | 128 cmd=[self.ios_bin.join('ios_install')], |
128 env=self.default_env, | 129 env=self.default_env, |
129 infra_step=True) | 130 infra_step=True) |
130 | 131 |
131 def cleanup_steps(self): | 132 def cleanup_steps(self): |
132 """Run any device-specific cleanup steps.""" | 133 """Run any device-specific cleanup steps.""" |
133 if self.m.vars.role in (self.m.builder_name_schema.BUILDER_ROLE_TEST, | 134 if self.m.vars.role in (self.m.builder_name_schema.BUILDER_ROLE_TEST, |
134 self.m.builder_name_schema.BUILDER_ROLE_PERF): | 135 self.m.builder_name_schema.BUILDER_ROLE_PERF): |
135 self.m.run( | 136 self.m.run( |
136 self.m.step, | 137 self.m.step, |
137 name='reboot', | 138 name='reboot', |
138 cmd=[self.ios_bin.join('ios_restart')], | 139 cmd=[self.ios_bin.join('ios_restart')], |
139 env=self.default_env, | 140 env=self.default_env, |
140 infra_step=True) | 141 infra_step=True) |
141 self.m.run( | 142 self.m.run( |
142 self.m.step, | 143 self.m.step, |
143 name='wait for reboot', | 144 name='wait for reboot', |
(...skipping 14 matching lines...) Expand all Loading... |
158 | 159 |
159 def remove_file_on_device(self, path): | 160 def remove_file_on_device(self, path): |
160 """Remove the file on the device.""" | 161 """Remove the file on the device.""" |
161 return self.m.run( | 162 return self.m.run( |
162 self.m.step, | 163 self.m.step, |
163 'rm %s' % path, | 164 'rm %s' % path, |
164 cmd=[self.ios_bin.join('ios_rm'), path], | 165 cmd=[self.ios_bin.join('ios_rm'), path], |
165 env=self.default_env, | 166 env=self.default_env, |
166 infra_step=True, | 167 infra_step=True, |
167 ) | 168 ) |
OLD | NEW |