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

Side by Side Diff: build_tools/buildbot_build_shard.sh

Issue 1097963003: Fix reporting of shard number in buildbot (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | 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 #!/bin/bash 1 #!/bin/bash
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 ###################################################################### 6 ######################################################################
7 # Notes on directory layout: 7 # Notes on directory layout:
8 # makefile location (base_dir): naclports/src 8 # makefile location (base_dir): naclports/src
9 # toolchain injection point: specified externally via NACL_SDK_ROOT. 9 # toolchain injection point: specified externally via NACL_SDK_ROOT.
10 ###################################################################### 10 ######################################################################
11 11
12 SCRIPT_DIR="$(cd $(dirname $0) && pwd)" 12 SCRIPT_DIR="$(cd $(dirname $0) && pwd)"
13 source ${SCRIPT_DIR}/buildbot_common.sh 13 source ${SCRIPT_DIR}/buildbot_common.sh
14 14
15 set -o nounset 15 set -o nounset
16 set -o errexit 16 set -o errexit
17 17
18 readonly PARTCMD="${PYTHON} build_tools/partition.py" 18 readonly PARTCMD="${PYTHON} build_tools/partition.py"
19 readonly SHARD_CMD="${PARTCMD} -t ${SHARD} -n ${SHARDS}" 19 readonly SHARD_CMD="${PARTCMD} -t ${SHARD} -n ${SHARDS}"
20 echo "Calculating targets for shard ${SHARD} of ${SHARDS}" 20 echo "Calculating targets for shard $((${SHARD} + 1)) of ${SHARDS}"
21 readonly PACKAGE_LIST=$(${SHARD_CMD}) 21 readonly PACKAGE_LIST=$(${SHARD_CMD})
22 if [ -z "${PACKAGE_LIST}" ]; then 22 if [ -z "${PACKAGE_LIST}" ]; then
23 echo "sharding command failed: ${SHARD_CMD}" 23 echo "sharding command failed: ${SHARD_CMD}"
24 exit 1 24 exit 1
25 fi 25 fi
26 26
27 echo "Building the following packages: ${PACKAGE_LIST}" 27 echo "Building the following packages: ${PACKAGE_LIST}"
28 for PKG in ${PACKAGE_LIST}; do 28 for PKG in ${PACKAGE_LIST}; do
29 InstallPackageMultiArch ${PKG} 29 InstallPackageMultiArch ${PKG}
30 done 30 done
31 31
32 echo "@@@BUILD_STEP Summary@@@" 32 echo "@@@BUILD_STEP Summary@@@"
33 if [[ ${RESULT} != 0 ]] ; then 33 if [[ ${RESULT} != 0 ]] ; then
34 echo "@@@STEP_FAILURE@@@" 34 echo "@@@STEP_FAILURE@@@"
35 echo -e "${MESSAGES}" 35 echo -e "${MESSAGES}"
36 fi 36 fi
37 37
38 exit ${RESULT} 38 exit ${RESULT}
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698