From: Alain Spineux Date: Thu, 12 May 2022 09:50:28 +0000 (+0200) Subject: regress: modify copy-job-test to test fix for #9116 X-Git-Tag: Release-13.0.0~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0352e0aedce74b8c7accc435b3118cece93466ab;p=thirdparty%2Fbacula.git regress: modify copy-job-test to test fix for #9116 - add a dummy client with a FdStorageAddress and configure the copy-job with it. - tweak restore and check_for_zombie_jobs to not complain about the new dummy client --- diff --git a/regress/tests/copy-job-test b/regress/tests/copy-job-test index 07e9c8d7f..164e39936 100755 --- a/regress/tests/copy-job-test +++ b/regress/tests/copy-job-test @@ -36,6 +36,26 @@ sed 's/migrate/copy/g' ${cwd}/bin/bacula-dir.conf > ${cwd}/tmp/1 sed 's/Migrate/Copy/g' ${cwd}/tmp/1 > ${cwd}/bin/bacula-dir.conf change_jobname NightlySave $JobName +if bin/true ; then + # add a dummy client for the copy-job to test for bug #9116 + $bperl -e "add_attribute('$conf/bacula-dir.conf', 'Client', 'dummy-fd', 'Job', 'copy-job')" + cat >> $conf/bacula-dir.conf <