]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/copy-uncopied-test
Fix regression minor scripting problems
[bacula/bacula] / regress / tests / copy-uncopied-test
index 53326a92a56a9c7626fa7a151ed4198b629dc332..29c98cc4d8aa18474391a1826e01a9c604595c8d 100755 (executable)
@@ -1,5 +1,8 @@
 #!/bin/sh
 #
+# Copyright (C) 2000-2017 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
 # Run a backup of the Bacula build directory on two Volumes
 #   then copy it to another device.             
 #
@@ -12,7 +15,6 @@ JobName=MigVolBackup
 
 scripts/cleanup
 scripts/copy-migration-confs
-scripts/prepare-disk-changer
 echo "${cwd}/build" >${cwd}/tmp/file-list
 #cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
 #sed "s%# Maximum File Size%  Maximum File Size%" ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
@@ -24,6 +26,8 @@ rm -f ${cwd}/build/po/test.po >/dev/null
 
 touch ${cwd}/tmp/log2.out
 
+$bperl -e 'add_attribute("$conf/bacula-dir.conf", "Allow Duplicate Jobs", "no", "Job", "MigVolBackup")'
+
 start_test
 
 #
@@ -34,7 +38,7 @@ start_test
 
 # Write out bconsole commands
 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@$out /dev/null
+@output /dev/null
 messages
 @$out ${cwd}/tmp/log1.out
 label storage=File volume=FileVolume001 Pool=Default