]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Add distro type to schedule_suite.sh
authorSandon Van Ness <sandon@inktank.com>
Tue, 23 Jul 2013 23:09:07 +0000 (16:09 -0700)
committerSandon Van Ness <sandon@inktank.com>
Tue, 23 Jul 2013 23:09:07 +0000 (16:09 -0700)
Also added machinetype to the name.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
schedule_suite.sh

index 031c92f15e0ff4ddcb3eb00639a45c1ba61140f0..1464c52117e715f53785acaf8f0f354b4eff35a5 100755 (executable)
@@ -8,15 +8,18 @@ flavor=$5
 teuthology_branch=$6
 mtype=$7
 template=$8
+distro=$9
 
 if [ -z "$email" ]; then
-    echo "usage: $0 <suite> <ceph branch> <kernel branch> <email> [flavor] [teuthology-branch] [machinetype] [template]"
+    echo "usage: $0 <suite> <ceph branch> <kernel branch> <email> [flavor] [teuthology-branch] [machinetype] [template] [distro]"
     echo "  flavor can be 'basic', 'gcov', 'notcmalloc'."
     exit 1
 fi
 
 [ -z "$flavor" ] && flavor='basic'
 
+[ -z "$distro" ] && distro='ubuntu'
+
 
 ##
 test ! -d ~/src/ceph-qa-suite && echo "error: expects to find ~/src/ceph-qa-suite" && exit 1
@@ -61,6 +64,7 @@ kernel:
   sha1: $KERNEL_SHA1
 nuke-on-error: true
 machine_type: $mtype
+os_type: $distro
 tasks:
 - chef:
 - clock.check:
@@ -98,7 +102,7 @@ fi
 
 ##
 stamp=`date +%Y-%m-%d_%H:%M:%S`
-name=`whoami`"-$stamp-$suite-$ceph-$kernel-$flavor"
+name=`whoami`"-$stamp-$suite-$ceph-$kernel-$flavor-$mtype"
 
 echo "name $name"