From b6dcece0c4c8fed41e238d28e6b3995ba2b880bb Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 13 May 2019 18:07:32 +0200 Subject: [PATCH] regress: Show new issue with JobMedia and incomplete --- regress/tests/restart-jobmedia-test | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/regress/tests/restart-jobmedia-test b/regress/tests/restart-jobmedia-test index 8611fb4f2..9118a92fa 100755 --- a/regress/tests/restart-jobmedia-test +++ b/regress/tests/restart-jobmedia-test @@ -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 <> $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 -- 2.47.3