Merge pull request #686 from ceph/wip_rados_subset

Reducing the ammount of resulting jobs scheduled
Fixed the math added comments

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
This commit is contained in:
Sage Weil 2015-11-11 11:55:06 -05:00 committed by Yuri Weinstein
commit 9e80ca2e75

View File

@ -5,4 +5,18 @@
# $3 - machine name
# $4 - filter out
teuthology-suite -v -c $2 -m $3 -k distro -s rados --subset $(echo "(($(date +%U) % 2) * 7) + $1" | bc)/14 $4
## example #1
## (date +%U) week number
## % 2 - mod 2 (e.g. 0,1,0,1 ...)
## * 7 - multiplied by 7 (e.g. 0,7,0,7...)
## $1 day of the week (0-6)
## /14 for 2 weeks
## example #2
## (date +%U) week number
## % 4 - mod 4 (e.g. 0,1,2,3,0,1,2,3 ...)
## * 7 - multiplied by 7 (e.g. 0,7,14,21,0,7,14,21...)
## $1 day of the week (0-6)
## /28 for 4 weeks
teuthology-suite -v -c $2 -m $3 -k distro -s rados --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/28 $4