summaryrefslogtreecommitdiffstats
path: root/src/test/objectstore/run_seed_to_range.sh
blob: 7af2e59ceaf572df0750d42f273642a0f0e2ab0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

set -x
set -e

seed=$1
from=$2
to=$3
dir=$4

mydir=`dirname $0`

for f in `seq $from $to`
do
    if ! $mydir/run_seed_to.sh -o 10 -e $seed $f; then
	if [ -d "$dir" ]; then
	    echo copying evidence to $dir
	    cp -a . $dir
	else
	    echo no dir provided for evidence disposal
	fi
	exit 1
    fi
done