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

Side by Side Diff: slave/skia_slave_scripts/download_skimage_files.py

Issue 16226005: Run skimage on the bots. (Closed) Base URL: https://skia.googlecode.com/svn/buildbot
Patch Set: Respond to comments. Created 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 """ Download the image files needed to run skimage tool. """
epoger 2013/07/08 16:03:05 Wouldn't it be simpler to keep the source image fi
scroggo 2013/07/08 22:36:44 Yes, it would be easier to keep them in resources.
epoger 2013/07/12 15:09:01 I don't know where the line is either. :-) You ge
7
8 from build_step import BuildStep
9 from utils import gs_utils
10 from utils import sync_bucket_subdir
11 import os
12 import sys
13
14 class DownloadSKImageFiles(BuildStep):
15 def __init__(self, timeout=12800, no_output_timeout=9600, **kwargs):
16 super (DownloadSKImageFiles, self).__init__(
17 timeout=timeout,
18 no_output_timeout=no_output_timeout,
19 **kwargs)
20
21 def _DownloadSKImagesFromStorage(self):
22 """Copies over image files from Google Storage if the timestamps differ."""
23 dest_gsbase = (self._args.get('dest_gsbase') or
24 sync_bucket_subdir.DEFAULT_PERFDATA_GS_BASE)
25 print '\n\n========Downloading image files from Google Storage========\n\n'
26 gs_relative_dir = os.path.join('skimage', 'input')
27 gs_utils.DownloadDirectoryContentsIfChanged(
28 gs_base=dest_gsbase,
29 gs_relative_dir=gs_relative_dir,
30 local_dir=self._skimage_in_dir)
31
32 def _Run(self):
33 # Locally copy image files from GoogleStorage.
34 self._DownloadSKImagesFromStorage()
35
36
37 if '__main__' == __name__:
38 sys.exit(BuildStep.RunBuildStep(DownloadSKImageFiles))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698