Skip to content

Commit

Permalink
hammer.sh: -a to archive each run
Browse files Browse the repository at this point in the history
Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas committed Apr 20, 2012
1 parent e3af087 commit c9d2185
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions hammer.sh
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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."

0 comments on commit c9d2185

Please sign in to comment.