From: Kern Sibbald Date: Sat, 3 Jul 2010 15:06:03 +0000 (+0200) Subject: Remove Linux dependency (seq) in regress script X-Git-Tag: Release-5.0.3~100 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4709824a9e600adf866b9874984bfd5db690d33c;p=bacula%2Fbacula Remove Linux dependency (seq) in regress script --- diff --git a/regress/tests/duplicate-job-test b/regress/tests/duplicate-job-test index f4eaa2aaac..cd4eba6907 100755 --- a/regress/tests/duplicate-job-test +++ b/regress/tests/duplicate-job-test @@ -39,11 +39,13 @@ echo 's%CompressedTest%CancelRunningDuplicatesNo%' > $outf echo 's%Backup%Backup; AllowDuplicateJobs = no;CancelLowerLevelDuplicates=no;CancelQueuedDuplicates=no; CancelRunningDuplicates=no%' >> $outf sed -f $outf $tmp/1 >> $conf/bacula-dir.conf -for i in `seq 1 40`; do +i=1 +while [ $i -le 40 ]; do echo "s%CompressedTest%CancelLowerLevelDuplicatesYes-$i%" > $outf echo 's%Backup%Backup; AllowDuplicateJobs = no; CancelLowerLevelDuplicates=yes%' >> $outf echo 's%sleep 6%sleep 20%' >> $outf sed -f $outf $tmp/1 >> $conf/bacula-dir.conf + i=`expr $i + 1` done when=`perl -Mscripts::functions -e "get_time(300)"` @@ -161,30 +163,36 @@ messages @########################## END_OF_DATA -for i in `seq 1 30`; do +i=1 +while [ $i -le 30 ]; do cat <>${cwd}/tmp/bconcmds @# Should work run level=Full job=CancelLowerLevelDuplicatesYes-$i yes EOF +i=`expr $i + 1` done echo "wait" >> ${cwd}/tmp/bconcmds echo "messages" >> ${cwd}/tmp/bconcmds -for i in `seq 1 30`; do +i=1 +while [ $i -le 30 ]; do cat <>${cwd}/tmp/bconcmds @# Should fail run level=Incremental job=CancelLowerLevelDuplicatesYes-$i yes EOF +i=`expr $i + 1` done echo "@sleep 5" >> ${cwd}/tmp/bconcmds -for i in `seq 1 30`; do +i=1 +while [ $i -le 30 ]; do cat <>${cwd}/tmp/bconcmds @# Should work run level=Full job=CancelLowerLevelDuplicatesYes-$i yes EOF +i=`expr $i + 1` done echo "wait" >> ${cwd}/tmp/bconcmds