OLD | NEW |
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 | 5 |
6 """Default flavor utils class, used for desktop builders.""" | 6 """Default flavor utils class, used for desktop builders.""" |
7 | 7 |
8 | 8 |
9 import json | 9 import json |
10 | 10 |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 """Run any device-specific cleanup steps.""" | 205 """Run any device-specific cleanup steps.""" |
206 pass | 206 pass |
207 | 207 |
208 def get_device_dirs(self): | 208 def get_device_dirs(self): |
209 """ Set the directories which will be used by the build steps. | 209 """ Set the directories which will be used by the build steps. |
210 | 210 |
211 These refer to paths on the same device where the test executables will | 211 These refer to paths on the same device where the test executables will |
212 run, for example, for Android bots these are paths on the Android device | 212 run, for example, for Android bots these are paths on the Android device |
213 itself. For desktop bots, these are just local paths. | 213 itself. For desktop bots, these are just local paths. |
214 """ | 214 """ |
215 pardir = self._skia_api.m.path.pardir | |
216 join = self._skia_api.slave_dir.join | |
217 return DeviceDirs( | 215 return DeviceDirs( |
218 dm_dir=self._skia_api.dm_dir, | 216 dm_dir=self._skia_api.dm_dir, |
219 perf_data_dir=self._skia_api.perf_data_dir, | 217 perf_data_dir=self._skia_api.perf_data_dir, |
220 resource_dir=self._skia_api.resource_dir, | 218 resource_dir=self._skia_api.resource_dir, |
221 images_dir=join('images'), | 219 images_dir=self._skia_api.images_dir, |
222 skp_dir=self._skia_api.local_skp_dir, | 220 skp_dir=self._skia_api.local_skp_dir, |
223 tmp_dir=join('tmp')) | 221 tmp_dir=self._skia_api.tmp_dir) |
224 | 222 |
225 def __repr__(self): | 223 def __repr__(self): |
226 return '<%s object>' % self.__class__.__name__ # pragma: no cover | 224 return '<%s object>' % self.__class__.__name__ # pragma: no cover |
OLD | NEW |