]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
BEE Backport regress/tests/restart-job-test
authorEric Bollengier <eric@baculasystems.com>
Mon, 3 Aug 2020 14:42:28 +0000 (16:42 +0200)
committerEric Bollengier <eric@baculasystems.com>
Tue, 1 Mar 2022 14:36:17 +0000 (15:36 +0100)
regress/tests/restart-job-test

index e4f10c4a9999f0d3a8b6600432ad97b8b31261de..77a94bbb7d3ab7a52bfa469d65481a10a56445e3 100755 (executable)
@@ -1,9 +1,7 @@
 #!/bin/sh
 #
-# Copyright (C) 2000-2015 Kern Sibbald
+# Copyright (C) 2000-2020 Kern Sibbald
 # License: BSD 2-Clause; see file LICENSE-FOSS
-#
-
 #
 # Run a backup of the build directory but force it to have
 #   a comm error, and check that it restarts correctly.
@@ -15,12 +13,15 @@ JobName=RestartJob
 scripts/cleanup
 scripts/copy-test-confs
 
+setup_shstore # simulate shared storage if enabled
 
 echo "${cwd}/build" >${cwd}/tmp/file-list
 
 change_jobname NightlySave $JobName
 start_test
 
+$bperl -e "add_attribute('$conf/bacula-dir.conf', 'AllowIncompleteJobs', 'yes', 'Job')"
+
 cat <<EOF >> $conf/bacula-dir.conf
 Pool {
   Name = PoolA