From: Eric Bollengier Date: Thu, 17 Jun 2010 07:11:05 +0000 (+0200) Subject: regress: update prune test for base jobs X-Git-Tag: Release-5.0.3~139 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7a78dc3a802694285752a97ce61face69b8f5501;p=bacula%2Fbacula regress: update prune test for base jobs --- diff --git a/regress/tests/prune-base-job-test b/regress/tests/prune-base-job-test index 204a22152e..5c1d71ee07 100755 --- a/regress/tests/prune-base-job-test +++ b/regress/tests/prune-base-job-test @@ -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 <${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