From 4709824a9e600adf866b9874984bfd5db690d33c Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 3 Jul 2010 17:06:03 +0200 Subject: [PATCH] Remove Linux dependency (seq) in regress script --- regress/tests/duplicate-job-test | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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 -- 2.39.5