I don't want to add another arg at the end of the very long list of
optional args, so I'll use an environment variable. Ugly! But this whole
script needs to be replace anyway.
Signed-off-by: Sage Weil <sage@inktank.com>
template=$8
distro=$9
limit=${10}
+extra_args=""
if [ -z "$limit" ]
then
if [ -z "$kernel" ]; then
echo "usage: $0 <suite> <ceph branch> <kernel branch> [email] [flavor] [teuthology-branch] [machinetype] [template] [distro]"
echo " flavor can be 'basic', 'gcov', 'notcmalloc'."
+ echo " PRIO=123 in the environment sets priority (default 1000, smaller=higher)"
exit 1
fi
tube=$mtype
fi
+
+if [ "$PRIO" != "" ]; then
+ extra_args="$extra_args --priority $PRIO"
+fi
+
stamp=`date +%Y-%m-%d_%H:%M:%S`
nicesuite=`echo $suite | sed 's/\//:/g'`
name=`whoami`"-$stamp-$nicesuite-$ceph-$kernel-$flavor-$tube"
--timeout 36000 \
$limitline \
--name $name \
- --worker $tube
+ --worker $tube \
+ $extra_args