]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: Show new issue with JobMedia and incomplete
authorEric Bollengier <eric@baculasystems.com>
Mon, 13 May 2019 16:07:32 +0000 (18:07 +0200)
committerEric Bollengier <eric@baculasystems.com>
Wed, 15 May 2019 08:03:57 +0000 (10:03 +0200)
regress/tests/restart-jobmedia-test

index 8611fb4f2c102de9d42c4fabd91b7afb3fccf0cc..9118a92fa90d17c7330be5014abd91cde113ce7c 100755 (executable)
@@ -42,6 +42,7 @@ $bperl -e "add_attribute('$conf/bacula-sd.conf', 'MaximumFileSize', '2MB', 'Devi
 $bperl -e "add_attribute('$conf/bacula-sd.conf', 'MaximumSpoolSize', '2MB', 'Device')"
 $bperl -e "add_attribute('$conf/bacula-dir.conf', 'LabelFormat', 'Vol', 'Pool')"
 $bperl -e "add_attribute('$conf/bacula-dir.conf', 'NextPool', 'VF', 'Pool')"
+$bperl -e "add_attribute('$conf/bacula-dir.conf', 'MaximumVolumeBytes', '7MB', 'Pool')"
 
 cat <<EOF >> $conf/bacula-dir.conf
 Job {
@@ -53,6 +54,15 @@ Job {
  Fileset = "Full Set"
  JobDefs = BackupJob
 }
+Job {
+ Name = copy
+ Type = Copy
+ Selection Type = Job
+ Selection Pattern = $JobName
+ Client = $HOST-fd
+ Fileset = "Full Set"
+ JobDefs = BackupJob
+}
 Job {
  Name = verify
  Type = Verify
@@ -110,12 +120,18 @@ yes
 wait
 messages
 @$out ${cwd}/tmp/log3.out
-run job=migrate yes
+run job=copy jobid=1 yes
 wait
 messages
 run job=verify jobid=4 yes
 wait
 messages
+@#run job=migrate yes
+@#wait
+@#messages
+@#run job=verify jobid=7 yes
+@#wait
+@#messages
 restore where=$tmp/bacula-restores2 jobid=4 all done
 yes
 wait
@@ -139,11 +155,11 @@ if [ $? != 0 ]; then
     estat=1
 fi
 
-grep "Migration OK" $tmp/log3.out > /dev/null
-if [ $? != 0 ]; then
-    print_debug "ERROR: Found error with migration in $tmp/log3.out"
-    estat=1
-fi
+#grep "Migration OK" $tmp/log3.out > /dev/null
+#if [ $? != 0 ]; then
+#    print_debug "ERROR: Found error with migration in $tmp/log3.out"
+#    estat=1
+#fi
 
 grep "Verify OK" $tmp/log3.out > /dev/null
 if [ $? != 0 ]; then