From 7309bccca300743ecb9874dc3f69648d36b4fc8d Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 12 Feb 2013 21:15:52 -0800 Subject: [PATCH] schedule_suite.sh: take option teuthology branch arg Signed-off-by: Sage Weil --- schedule_suite.sh | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/schedule_suite.sh b/schedule_suite.sh index 7aeaa81abb..ed46153a37 100755 --- a/schedule_suite.sh +++ b/schedule_suite.sh @@ -5,10 +5,11 @@ ceph=$2 kernel=$3 email=$4 flavor=$5 -template=$6 +teuthology_branch=$6 +template=$7 if [ -z "$email" ]; then - echo "usage: $0 [flavor] [template]" + echo "usage: $0 [flavor] [teuthology-branch] [template]" echo " flavor can be 'basic', 'gcov', 'notcmalloc'." exit 1 fi @@ -72,11 +73,13 @@ fi stamp=`date +%Y-%m-%d_%H:%M:%S` name=`whoami`"-$stamp-$suite-$ceph-$kernel-$flavor" -if wget http://github.com/ceph/teuthology/tree/$ceph -O- 2>/dev/null >/dev/null ; then - teuthology_branch=$ceph -else - echo "branch $ceph not in teuthology.git; will use master for teuthology" - teuthology_branch='master' +if [ -z "$teuthology_branch" ]; then + if wget http://github.com/ceph/teuthology/tree/$ceph -O- 2>/dev/null >/dev/null ; then + teuthology_branch=$ceph + else + echo "branch $ceph not in teuthology.git; will use master for teuthology" + teuthology_branch='master' + fi fi ~/src/teuthology/virtualenv/bin/teuthology-suite -v $fn \ -- 2.39.5