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

Unified Diff: scripts/slave/recipes/webrtc/standalone.py

Issue 628523002: WebRTC: Prepare for enabling bot_update for standalone recipe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipes/webrtc/standalone.py
diff --git a/scripts/slave/recipes/webrtc/standalone.py b/scripts/slave/recipes/webrtc/standalone.py
index 72b959addabeb77ba341ea8817e40ed80dde9604..ff1222b86fddd3ea69d778cb9d4063099a8a350f 100644
--- a/scripts/slave/recipes/webrtc/standalone.py
+++ b/scripts/slave/recipes/webrtc/standalone.py
@@ -6,6 +6,7 @@
DEPS = [
'archive',
+ 'bot_update',
'chromium',
'chromium_android',
'gclient',
@@ -49,7 +50,11 @@ def GenSteps(api):
if api.tryserver.is_tryserver:
api.chromium.apply_config('trybot_flavor')
- step_result = api.gclient.checkout()
+ step_result = api.bot_update.ensure_checkout()
+ bot_update_mode = step_result.json.output['did_run']
+ if not bot_update_mode:
+ step_result = api.gclient.checkout()
+
# Whatever step is run right before this line needs to emit got_revision.
got_revision = step_result.presentation.properties['got_revision']
« no previous file with comments | « scripts/slave/bot_update.py ('k') | scripts/slave/recipes/webrtc/standalone.expected/client_webrtc_android_arm64__dbg_.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698