mirror of
https://github.com/ceph/ceph
synced 2024-12-13 15:08:33 +00:00
c9d2185624
Signed-off-by: Sage Weil <sage@newdream.net>
32 lines
447 B
Bash
Executable File
32 lines
447 B
Bash
Executable File
#!/bin/sh -ex
|
|
|
|
if [ $1 = "-a" ]; then
|
|
shift
|
|
job=$1
|
|
log="--archive $job.out"
|
|
else
|
|
job=$1
|
|
log=""
|
|
fi
|
|
|
|
test -e $1
|
|
|
|
teuthology-nuke -t $job
|
|
|
|
title() {
|
|
echo '\[\033]0;hammer '$job' '$N' passes\007\]'
|
|
}
|
|
|
|
N=0
|
|
title
|
|
[ -n "$log" ] && [ -d $job.out ] && rm -rf $job.out
|
|
while teuthology $log $job $2 $3 $4
|
|
do
|
|
date
|
|
N=$(($N+1))
|
|
echo "$job: $N passes"
|
|
[ -n "$log" ] && rm -rf $job.out
|
|
title
|
|
done
|
|
echo "$job: $N passes, then failure."
|