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

Side by Side Diff: infra/bots/common.py

Issue 1749873002: Swarming Bots: fix resource path (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2016 Google Inc. 3 # Copyright 2016 Google Inc.
4 # 4 #
5 # Use of this source code is governed by a BSD-style license that can be 5 # Use of this source code is governed by a BSD-style license that can be
6 # found in the LICENSE file. 6 # found in the LICENSE file.
7 7
8 8
9 import contextlib 9 import contextlib
10 import math 10 import math
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 'BUILDTYPE': self.configuration, 164 'BUILDTYPE': self.configuration,
165 'PATH': os.environ['PATH'], 165 'PATH': os.environ['PATH'],
166 } 166 }
167 self.default_env.update(self.spec['env']) 167 self.default_env.update(self.spec['env'])
168 self.build_targets = [str(t) for t in self.spec['build_targets']] 168 self.build_targets = [str(t) for t in self.spec['build_targets']]
169 self.is_trybot = self.bot_cfg['is_trybot'] 169 self.is_trybot = self.bot_cfg['is_trybot']
170 self.upload_dm_results = self.spec['upload_dm_results'] 170 self.upload_dm_results = self.spec['upload_dm_results']
171 self.upload_perf_results = self.spec['upload_perf_results'] 171 self.upload_perf_results = self.spec['upload_perf_results']
172 self.perf_data_dir = os.path.join(self.swarm_out_dir, 'perfdata', 172 self.perf_data_dir = os.path.join(self.swarm_out_dir, 'perfdata',
173 self.name, 'data') 173 self.name, 'data')
174 self.resource_dir = os.path.join(self.build_dir, 'resources') 174 self.resource_dir = os.path.join(self.skia_dir, 'resources')
175 self.images_dir = os.path.join(self.build_dir, 'images') 175 self.images_dir = os.path.join(self.build_dir, 'images')
176 self.local_skp_dir = os.path.join(self.build_dir, 'playback', 'skps') 176 self.local_skp_dir = os.path.join(self.build_dir, 'playback', 'skps')
177 self.dm_flags = self.spec['dm_flags'] 177 self.dm_flags = self.spec['dm_flags']
178 self.nanobench_flags = self.spec['nanobench_flags'] 178 self.nanobench_flags = self.spec['nanobench_flags']
179 self._ccache = None 179 self._ccache = None
180 self._checked_for_ccache = False 180 self._checked_for_ccache = False
181 self._already_ran = {} 181 self._already_ran = {}
182 self.tmp_dir = os.path.join(self.build_dir, 'tmp') 182 self.tmp_dir = os.path.join(self.build_dir, 'tmp')
183 self.flavor = self.get_flavor(self.bot_cfg) 183 self.flavor = self.get_flavor(self.bot_cfg)
184 184
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 361
362 # See skia:2789. 362 # See skia:2789.
363 if ('Valgrind' in self.name and 363 if ('Valgrind' in self.name and
364 self.builder_cfg.get('cpu_or_gpu') == 'GPU'): 364 self.builder_cfg.get('cpu_or_gpu') == 'GPU'):
365 abandonGpuContext = list(args) 365 abandonGpuContext = list(args)
366 abandonGpuContext.append('--abandonGpuContext') 366 abandonGpuContext.append('--abandonGpuContext')
367 self.flavor.run(abandonGpuContext) 367 self.flavor.run(abandonGpuContext)
368 preAbandonGpuContext = list(args) 368 preAbandonGpuContext = list(args)
369 preAbandonGpuContext.append('--preAbandonGpuContext') 369 preAbandonGpuContext.append('--preAbandonGpuContext')
370 self.flavor.run(preAbandonGpuContext) 370 self.flavor.run(preAbandonGpuContext)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698