ceph/hammer.sh
Sage Weil 303e863d32 add hammer.sh
simple script to repeat a test until it fails.  can probably do something much more sophisticated
here, but this works.
2011-11-09 13:37:02 -08:00

22 lines
263 B
Bash
Executable File

#!/bin/sh -ex
job=$1
test -e $1
bin/teuthology-nuke $job
title() {
echo '\[\033]0;hammer '$job' '$N' passes\007\]'
}
N=0
title
while bin/teuthology $job $2 $3 $4
do
date
N=$(($N+1))
echo "$job: $N passes"
title
done
echo "$job: $N passes, then failure."