summaryrefslogtreecommitdiffstats
path: root/libcxx/utils/docker/scripts
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2019-04-28 16:42:49 +0000
committerEric Fiselier <eric@efcs.ca>2019-04-28 16:42:49 +0000
commit290a3a364888c26999e61ddd3247725ef81b6686 (patch)
tree6a03bebccdef942f4643066f5af98eece4dd7af1 /libcxx/utils/docker/scripts
parent2f5f9a159bce94c2b8b917cc6480a798b0eaf358 (diff)
downloadbcm5719-llvm-290a3a364888c26999e61ddd3247725ef81b6686.tar.gz
bcm5719-llvm-290a3a364888c26999e61ddd3247725ef81b6686.zip
attempt to unbreak build bots
llvm-svn: 359404
Diffstat (limited to 'libcxx/utils/docker/scripts')
-rwxr-xr-xlibcxx/utils/docker/scripts/run_buildbot_new.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/libcxx/utils/docker/scripts/run_buildbot_new.sh b/libcxx/utils/docker/scripts/run_buildbot_new.sh
index 3f21b9078ac..92ec2abd2dd 100755
--- a/libcxx/utils/docker/scripts/run_buildbot_new.sh
+++ b/libcxx/utils/docker/scripts/run_buildbot_new.sh
@@ -15,6 +15,8 @@ popd
apt-get update -y
apt-get upgrade -y
+apt-get install sudo -y
+
# FIXME(EricWF): Remove this hack. It's only in place to temporarily fix linking libclang_rt from the
# debian packages.
# WARNING: If you're not a buildbot, DO NOT RUN!
@@ -67,7 +69,7 @@ function try_start_builder {
local BOT_DIR=$BOT_ROOT/b$N
local BOT_NAME=$BOT_ROOT_NAME$N
setup_numbered_bot $BOT_NAME $BOT_DIR
- /usr/bin/buildslave start $BOT_DIR
+ sudo -u buildbot /usr/bin/buildslave start $BOT_DIR
sleep 30
cat /tmp/twistd.log
@@ -82,8 +84,7 @@ function try_start_builder {
exit 1
}
-
-for N in 1 2 3 4 5
+for N in `shuf -i 1-5`
do
if try_start_builder $N; then
break
OpenPOWER on IntegriCloud