list jobs
prune jobs yes
list jobs
+@$out $tmp/log6.out
+@################################################################
+@# Should prune the last incr
+run job=$JobName level=incremental yes
+wait
+messages
@$out $tmp/log2.out
restore where=${cwd}/tmp/bacula-restores select all storage=File done
yes
@sleep 2
@$out $tmp/log6.out
@################################################################
-@# Should prune the restore job
+@# Should prune the restore job and the last incremental job (jobfiles=0)
list jobs
prune jobs yes
list jobs
$bperl -e "check_job_list('$tmp/log5.out',1,4,5)"
estat=$(($estat + $?))
-$bperl -e "check_job_list('$tmp/log6.out',7)"
+$bperl -e "check_job_list('$tmp/log6.out',7,8)"
estat=$(($estat + $?))
end_test