| 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..74b27923da8a7b910b62e246baaaa12449231bff 100644
 | 
| --- a/build/android/buildbot/bb_utils.py
 | 
| +++ b/build/android/buildbot/bb_utils.py
 | 
| @@ -76,3 +76,18 @@ 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):
 | 
| +  if not options.steps:
 | 
| +    return
 | 
| +
 | 
| +  steps = options.steps.split(',')
 | 
| +  unknown_steps = set(steps) - set(step for step, _ in all_steps)
 | 
| +  if unknown_steps:
 | 
| +    print >> sys.stderr, 'FATAL: Unknown steps %s' % list(unknown_steps)
 | 
| +    sys.exit(1)
 | 
| +
 | 
| +  for step, cmd in all_steps:
 | 
| +    if step in steps:
 | 
| +      cmd(options)
 | 
| 
 |