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-7.0.0~1732 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0730817ab5242d6ba430376445c75b834d17319d;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