]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: fix copy-job-test for #9116, add the / in [/]bin/true
authorAlain Spineux <alain@baculasystems.com>
Wed, 14 Sep 2022 09:29:16 +0000 (11:29 +0200)
committerEric Bollengier <eric@baculasystems.com>
Sat, 18 Feb 2023 09:21:25 +0000 (10:21 +0100)
- 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

regress/tests/copy-job-test

index 164e39936dcc671d1e56ec1aa844827b35119415..f186f70286ba0d4f5b31791f1742255b47141bf0 100755 (executable)
@@ -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 <<EOF