]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
schedule_suite.sh: take machine type
authorSage Weil <sage@inktank.com>
Fri, 8 Mar 2013 23:15:07 +0000 (15:15 -0800)
committerSage Weil <sage@inktank.com>
Fri, 8 Mar 2013 23:17:15 +0000 (15:17 -0800)
This script is getting out of hand.. pretty soon we need to move to python
and argparse.

Signed-off-by: Sage Weil <sage@inktank.com>
schedule_suite.sh

index ee16ba6e9dbc4d595dc49172e7c67fa614ed9cbd..bdbd78771aa537898ee7051c5e727c72a651c05a 100755 (executable)
@@ -6,10 +6,11 @@ kernel=$3
 email=$4
 flavor=$5
 teuthology_branch=$6
-template=$7
+mtype=$7
+template=$8
 
 if [ -z "$email" ]; then
-    echo "usage: $0 <suite> <ceph branch> <kernel branch> <email> [flavor] [teuthology-branch] [template]"
+    echo "usage: $0 <suite> <ceph branch> <kernel branch> <email> [flavor] [teuthology-branch] [machinetype] [template]"
     echo "  flavor can be 'basic', 'gcov', 'notcmalloc'."
     exit 1
 fi
@@ -49,6 +50,8 @@ if [ -z "$teuthology_branch" ]; then
 fi
 echo "teuthology branch $teuthology_branch"
 
+[ -z "$mtype" ] && mtype="plana"
+
 ## always include this
 fn="/tmp/schedule.suite.$$"
 trap "rm $fn" EXIT
@@ -57,6 +60,7 @@ kernel:
   kdb: true
   sha1: $KERNEL_SHA1
 nuke-on-error: true
+machine_type: $mtype
 tasks:
 - chef:
 - clock: