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

Side by Side Diff: build/android/buildbot/bb_utils.py

Issue 1571803002: [Android] Prepare build/android/ for catapult+devil. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@create-device-library-links
Patch Set: rebase Created 4 years, 11 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
« no previous file with comments | « build/android/buildbot/bb_host_steps.py ('k') | build/android/devil_chromium.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import json 5 import json
6 import optparse 6 import optparse
7 import os 7 import os
8 import subprocess 8 import subprocess
9 import sys 9 import sys
10 10
11 import bb_annotations 11 import bb_annotations
12 12
13 sys.path.append(os.path.join(os.path.dirname(__file__), '..')) 13 sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
14 import devil_chromium # pylint: disable=unused-import
14 from devil.utils import cmd_helper 15 from devil.utils import cmd_helper
15 from pylib import constants 16 from pylib import constants
16 17
17 18
18 TESTING = 'BUILDBOT_TESTING' in os.environ 19 TESTING = 'BUILDBOT_TESTING' in os.environ
19 20
20 BB_BUILD_DIR = os.path.abspath( 21 BB_BUILD_DIR = os.path.abspath(
21 os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, 22 os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir,
22 os.pardir, os.pardir, os.pardir, os.pardir)) 23 os.pardir, os.pardir, os.pardir, os.pardir))
23 24
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 92
92 def RunSteps(steps, step_cmds, options): 93 def RunSteps(steps, step_cmds, options):
93 unknown_steps = set(steps) - set(step for step, _ in step_cmds) 94 unknown_steps = set(steps) - set(step for step, _ in step_cmds)
94 if unknown_steps: 95 if unknown_steps:
95 print >> sys.stderr, 'FATAL: Unknown steps %s' % list(unknown_steps) 96 print >> sys.stderr, 'FATAL: Unknown steps %s' % list(unknown_steps)
96 sys.exit(1) 97 sys.exit(1)
97 98
98 for step, cmd in step_cmds: 99 for step, cmd in step_cmds:
99 if step in steps: 100 if step in steps:
100 cmd(options) 101 cmd(options)
OLDNEW
« no previous file with comments | « build/android/buildbot/bb_host_steps.py ('k') | build/android/devil_chromium.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698