mirror of
https://github.com/ceph/ceph
synced 2025-01-20 18:21:57 +00:00
hammer.sh: -a to archive each run
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
e3af087712
commit
c9d2185624
14
hammer.sh
14
hammer.sh
@ -1,6 +1,14 @@
|
||||
#!/bin/sh -ex
|
||||
|
||||
job=$1
|
||||
if [ $1 = "-a" ]; then
|
||||
shift
|
||||
job=$1
|
||||
log="--archive $job.out"
|
||||
else
|
||||
job=$1
|
||||
log=""
|
||||
fi
|
||||
|
||||
test -e $1
|
||||
|
||||
teuthology-nuke -t $job
|
||||
@ -11,11 +19,13 @@ title() {
|
||||
|
||||
N=0
|
||||
title
|
||||
while teuthology $job $2 $3 $4
|
||||
[ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user