]> git.sur5r.net Git - bacula/bacula/commitdiff
regress: fix prune-base-job-test on slow systems
authorEric Bollengier <eric@eb.homelinux.org>
Fri, 17 Dec 2010 14:12:02 +0000 (15:12 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Fri, 17 Dec 2010 14:28:05 +0000 (15:28 +0100)
regress/tests/prune-base-job-test

index 02d27dd4c4b3cec75d67316f866d0ea9838defe7..33d09587d3fb6a9509d2251f2e5e7fcf6200c793 100755 (executable)
@@ -87,11 +87,6 @@ restore fileset=FS_TESTJOB where=${cwd}/tmp/bacula-restores select all done
 yes
 wait
 messages
-@$out ${cwd}/tmp/log4.out
-@exec "touch $cwd/build/po/fr.po"
-run job=backup level=incremental yes
-wait
-messages
 quit
 END_OF_DATA
 
@@ -105,6 +100,11 @@ check_restore_diff
 export bstat dstat estat
 
 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
+@$out ${cwd}/tmp/log4.out
+@exec "touch $cwd/build/po/fr.po"
+run job=backup level=incremental yes
+wait
+messages
 @$out $tmp/log10.out
 sql
 SELECT count(*) FROM BaseFiles;
@@ -128,10 +128,6 @@ list jobs
 run job=base_backup level=base yes
 wait
 messages
-@$out $tmp/log12.out
-list jobs
-prune jobs yes
-list jobs
 @$out $tmp/log1.out
 @################################################################
 @# This full job will force the purge of the previous one
@@ -179,10 +175,6 @@ estat=$(($estat + $?))
 $bperl -e "check_prune_list('$tmp/log11.out', 2,4,7)"
 estat=$(($estat + $?))
 
-# B F B -> B F B
-$bperl -e "check_prune_list('$tmp/log12.out')"
-estat=$(($estat + $?))
-
 # B F B F -> B F
 $bperl -e "check_prune_list('$tmp/log13.out',1,8)"
 estat=$(($estat + $?))