]> git.sur5r.net Git - bacula/bacula/commitdiff
regress: Add a deleted file test for restart
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 22 Feb 2011 10:06:52 +0000 (11:06 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:43:28 +0000 (14:43 +0200)
regress/tests/restart-accurate-job-test

index eff5f150905582524801ae9af1b94d02df51be8d..e2e5dec6b4d595a59436a174f4d118ce666077fb 100755 (executable)
@@ -15,6 +15,7 @@ change_jobname NightlySave $JobName
 
 $bperl -e "add_attribute('$conf/bacula-dir.conf', 'Accurate', 'yes', 'Job', 'RestartJob')"
 start_test
+touch $cwd/build/po/testfile
 
 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 @$out /dev/null
@@ -42,6 +43,7 @@ cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 setdebug level=0 trace=0 hangup=50 client
 @exec "sh -c 'touch $cwd/build/po/*'"
 @exec "sh -c 'touch $cwd/build/src/dird/*'"
+@exec "rm $cwd/build/po/testfile"
 run job=$JobName yes
 wait
 messages