Index: build/android/buildbot/bb_utils.py |
diff --git a/build/android/buildbot/bb_utils.py b/build/android/buildbot/bb_utils.py |
index 3f70caaac52634bf893f52d422f13b191f2ec26a..efab63ecd47c7977482f37483e0059be65035027 100644 |
--- a/build/android/buildbot/bb_utils.py |
+++ b/build/android/buildbot/bb_utils.py |
@@ -76,3 +76,16 @@ def GetParser(): |
def EncodeProperties(options): |
return ['--factory-properties=%s' % json.dumps(options.factory_properties), |
'--build-properties=%s' % json.dumps(options.build_properties)] |
+ |
+ |
+def RunSteps(all_steps, options): |
+ steps = [] |
+ if options.steps: |
Isaac (away)
2013/06/12 21:37:35
maybe change to
if not options.steps:
return
a
Siva Chandra
2013/06/13 00:09:56
Done.
|
+ steps = options.steps.split(',') |
+ unknown_steps = set(steps) - set(step for step, _ in all_steps) |
+ if unknown_steps: |
+ return sys.exit('Unknown steps %s' % list(unknown_steps)) |
Isaac (away)
2013/06/12 21:37:35
sys.exit does not return
Siva Chandra
2013/06/13 00:09:56
Done.
|
+ |
+ for step, cmd in all_steps: |
+ if step in steps: |
+ cmd(options) |