test-masters.sh
author 'John Ford <jhford@mozilla.com>'
Thu, 21 Oct 2010 14:58:09 -0700
changeset 3164 c5f1d20795a5945dd1d1cecedc56993c97e98c61
parent 3026 3c440954c0ed460af4cb8e25184b95bcacb20a20
child 3335 5aa6b4e211bffe7125860259424b6fd6361595ea
permissions -rwxr-xr-x
bug 602120 - new master for n900s r=aki p=jhford

#!/bin/bash
set -e
master_dir=master_dir
if [ "$1" = "-8" ]; then
    extra_args=-8
fi

exit_code=0

for master_name in $(python setup-master.py $extra_args -l); do
    rm -rf $master_dir
    mkdir $master_dir
    echo -n "${master_name}... "
    python setup-master.py $extra_args $master_dir $master_name
    (cd $master_dir; buildbot checkconfig > /dev/null && echo OK) || { echo "Broken pieces are in $master_dir"; exit_code=1; false; }
    rm -rf $master_dir
done

exit $exit_code