From: Alain Spineux Date: Wed, 14 Sep 2022 09:29:16 +0000 (+0200) Subject: regress: fix copy-job-test for #9116, add the / in [/]bin/true X-Git-Tag: Release-13.0.2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=195a2b138fcf79940a43b39b3822924da95ac37b;p=thirdparty%2Fbacula.git regress: fix copy-job-test for #9116, add the / in [/]bin/true - the test was still working, but not testing the bugfix for #9116 - I have enclosed the extra code into a "if fi" just before to push the fix, then the fix was well tested before the push, don't worry --- diff --git a/regress/tests/copy-job-test b/regress/tests/copy-job-test index 164e39936..f186f7028 100755 --- a/regress/tests/copy-job-test +++ b/regress/tests/copy-job-test @@ -36,7 +36,7 @@ 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 +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 <