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

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

Issue 344183004: Use new common utils where possible. (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: rebase Created 6 years, 5 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """ Check out the Skia sources. """ 6 """ Check out the Skia sources. """
7 7
8 8
9 from build_step import BuildStep, BuildStepFailure
10
9 from common import chromium_utils 11 from common import chromium_utils
10 from utils.git_utils import GIT 12 from py.utils.git_utils import GIT
11 from utils import file_utils 13 from utils import file_utils
12 from utils import gclient_utils 14 from utils import gclient_utils
13 from utils import misc 15 from py.utils import misc
14 from utils import shell_utils 16 from py.utils import shell_utils
15 from build_step import BuildStep, BuildStepFailure
16 17
17 import ast 18 import ast
18 import config_private 19 import config_private
19 import os 20 import os
20 import re 21 import re
21 import sys 22 import sys
22 23
23 24
24 LOCAL_GIT_MIRROR_URL = 'http://192.168.1.120/git-mirror/skia' 25 LOCAL_GIT_MIRROR_URL = 'http://192.168.1.120/git-mirror/skia'
25 SKIA_GIT_URL_TO_REPLACE = config_private.SKIA_GIT_URL[:-len('.git')] 26 SKIA_GIT_URL_TO_REPLACE = config_private.SKIA_GIT_URL[:-len('.git')]
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 raise BuildStepFailure('Actually-synced revision "%s" is different from ' 183 raise BuildStepFailure('Actually-synced revision "%s" is different from '
183 'the requested revision "%s".' % ( 184 'the requested revision "%s".' % (
184 repr(got_revision), repr(self._revision))) 185 repr(got_revision), repr(self._revision)))
185 186
186 # Print the obtained revision number so that the master can parse it. 187 # Print the obtained revision number so that the master can parse it.
187 print 'Skia updated to %s' % got_revision 188 print 'Skia updated to %s' % got_revision
188 189
189 190
190 if '__main__' == __name__: 191 if '__main__' == __name__:
191 sys.exit(BuildStep.RunBuildStep(Update)) 192 sys.exit(BuildStep.RunBuildStep(Update))
OLDNEW
« no previous file with comments | « slave/skia_slave_scripts/sync_android.py ('k') | slave/skia_slave_scripts/update_all_buildslave_checkouts.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698