From 7a78dc3a802694285752a97ce61face69b8f5501 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 17 Jun 2010 09:11:05 +0200 Subject: [PATCH] regress: update prune test for base jobs --- regress/tests/prune-base-job-test | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 -- 2.39.5