blob: e81f67d509b8cda05674a71d694b77d17f6a780c [file]
#!/bin/bash
#
# Runs a specified command on all slaves.
#
# The script should be run from the cluster-telemetry-master GCE instance's
# /b/skia-repo/buildbot/cluster_telemetry/telemetry_master_scripts
# directory.
#
# Copyright 2013 Google Inc. All Rights Reserved.
# Author: rmistry@google.com (Ravi Mistry)
source ../config.sh
if [ $# -ne 1 ]; then
echo
echo "Usage: `basename $0` \"pkill -9 -f tools/perf/record_wpr\""
echo
echo "The first argument is the command that should be run on all the slaves."
echo
exit 1
fi
CMD=$1
# Update buildbot.
gclient sync
echo "About to run $CMD on all slaves..."
for SLAVE_NUM in $(seq 1 $NUM_SLAVES); do
ssh -f -X -o UserKnownHostsFile=/dev/null -o CheckHostIP=no \
-o StrictHostKeyChecking=no \
-A -q -p 22 build${SLAVE_NUM}-b5 -- "$CMD"
done