]> git.sur5r.net Git - bacula/bacula/commitdiff
regress: update prune test for base jobs
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 17 Jun 2010 07:11:05 +0000 (09:11 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:53:55 +0000 (16:53 +0200)
regress/tests/prune-base-job-test

index 204a22152eaa9d5d471e159e22c56c9038007a50..5c1d71ee07ea354a4301c07d250b148a8c142216 100755 (executable)
@@ -19,8 +19,9 @@ sed s/all,/all,saved,/ $conf/bacula-fd.conf > tmp/1
 cp tmp/1 $conf/bacula-fd.conf
 
 change_jobname BackupClient1 $JobName
-$bperl -e 'add_attribute("$conf/bacula-dir.conf", "AutoPrune", "No", "Client")'
-$bperl -e 'add_attribute("$conf/bacula-dir.conf", "Job Retention", "1s", "Client")'
+dircfg=$conf/bacula-dir.conf
+$bperl -e 'add_attribute("$dircfg", "AutoPrune", "No", "Client")'
+$bperl -e 'add_attribute("$dircfg", "Job Retention", "1s", "Client")'
 
 p() {
     echo "##############################################" >> ${cwd}/tmp/log1.out
@@ -96,8 +97,12 @@ export bstat dstat estat
 
 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 @$out $tmp/log10.out
+sql
+SELECT count(*) FROM BaseFiles;
+
 list jobs
-prune jobs yes
+@#setdebug level=60 director trace=1
+@#prune jobs yes
 list jobs
 END_OF_DATA