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

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

Issue 23444021: Re-land r22016 "Archive webkit_tests results on android bots if requested" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix the path to archive_layout_test_results.py Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « build/android/buildbot/bb_device_steps.py ('k') | no next file » | 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 pipes 8 import pipes
9 import subprocess 9 import subprocess
10 import sys 10 import sys
11 11
12 import bb_annotations 12 import bb_annotations
13 13
14 sys.path.append(os.path.join(os.path.dirname(__file__), '..')) 14 sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
15 from pylib import constants 15 from pylib import constants
16 16
17 17
18 TESTING = 'BUILDBOT_TESTING' in os.environ 18 TESTING = 'BUILDBOT_TESTING' in os.environ
19 19
20 BB_BUILD_DIR = os.path.abspath( 20 BB_BUILD_DIR = os.path.abspath(
21 os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, 21 os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir,
22 os.pardir, os.pardir, os.pardir, os.pardir)) 22 os.pardir, os.pardir, os.pardir, os.pardir))
23 23
24 CHROME_SRC = os.path.abspath( 24 CHROME_SRC = os.path.abspath(
25 os.path.join(os.path.dirname(__file__), '..', '..', '..')) 25 os.path.join(os.path.dirname(__file__), '..', '..', '..'))
26 26
27 # TODO: Figure out how to merge this with pylib.cmd_helper.OutDirectory().
28 CHROME_OUT_DIR = os.path.join(CHROME_SRC, 'out')
29
27 GOMA_DIR = os.environ.get('GOMA_DIR', os.path.join(BB_BUILD_DIR, 'goma')) 30 GOMA_DIR = os.environ.get('GOMA_DIR', os.path.join(BB_BUILD_DIR, 'goma'))
28 31
29 GSUTIL_PATH = os.path.join(BB_BUILD_DIR, 'third_party', 'gsutil', 'gsutil') 32 GSUTIL_PATH = os.path.join(BB_BUILD_DIR, 'third_party', 'gsutil', 'gsutil')
30 33
31 def CommandToString(command): 34 def CommandToString(command):
32 """Returns quoted command that can be run in bash shell.""" 35 """Returns quoted command that can be run in bash shell."""
33 return ' '.join(map(pipes.quote, command)) 36 return ' '.join(map(pipes.quote, command))
34 37
35 38
36 def SpawnCmd(command, stdout=None, cwd=CHROME_SRC): 39 def SpawnCmd(command, stdout=None, cwd=CHROME_SRC):
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 88
86 def RunSteps(steps, step_cmds, options): 89 def RunSteps(steps, step_cmds, options):
87 unknown_steps = set(steps) - set(step for step, _ in step_cmds) 90 unknown_steps = set(steps) - set(step for step, _ in step_cmds)
88 if unknown_steps: 91 if unknown_steps:
89 print >> sys.stderr, 'FATAL: Unknown steps %s' % list(unknown_steps) 92 print >> sys.stderr, 'FATAL: Unknown steps %s' % list(unknown_steps)
90 sys.exit(1) 93 sys.exit(1)
91 94
92 for step, cmd in step_cmds: 95 for step, cmd in step_cmds:
93 if step in steps: 96 if step in steps:
94 cmd(options) 97 cmd(options)
OLDNEW
« no previous file with comments | « build/android/buildbot/bb_device_steps.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698