]> git.sur5r.net Git - bacula/bacula/commitdiff
regress: fix vtape-test-changer script
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 21 Apr 2010 12:46:40 +0000 (14:46 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:53:43 +0000 (16:53 +0200)
regress/tests/vtape-test-changer

index fabbbcb69a4dd6e8e3778664cf31c60ba3d2afa9..8c4f3b1e08e641a7d1702769becc0181db11339a 100755 (executable)
@@ -74,9 +74,9 @@ quit
 END_OF_DATA
 
 run_bconsole
-check_for_zombie_jobs storage=LTO1 $clientname
-check_for_zombie_jobs storage=LTO3 $clientname
-check_for_zombie_jobs storage=LTO1-ANSI_6 $clientname
+check_for_zombie_jobs storage=LTO1 client=$clientname
+check_for_zombie_jobs storage=LTO3 client=$clientname
+check_for_zombie_jobs storage=LTO1-ANSI_6 client=$clientname
 
 touch ${cwd}/build/po/*.po
 
@@ -97,9 +97,9 @@ messages
 END_OF_DATA
 
 run_bconsole
-check_for_zombie_jobs storage=LTO1 $clientname
-check_for_zombie_jobs storage=LTO3 $clientname
-check_for_zombie_jobs storage=LTO1-ANSI_6 $clientname
+check_for_zombie_jobs storage=LTO1 client=$clientname
+check_for_zombie_jobs storage=LTO3 client=$clientname
+check_for_zombie_jobs storage=LTO1-ANSI_6 client=$clientname
 
 # test update slots
 # remove volume vol20 from autochanger
@@ -124,19 +124,19 @@ check_restore_diff
 RES=`awk -F'|' '/vol20.+Append/ { print $11 }' ${cwd}/tmp/log3.out`
 set $RES
 if [ $1 -eq $2 ]; then
-    echo "Error in update slots"
+    print_debug "ERROR: Error in update slots"
     bstat=1
 fi
 
 grep LTO1_5 tmp/log1.out > /dev/null
 if test $? = 0; then
-    echo "AutoSelect option broken"
+    print_debug "ERROR: AutoSelect option broken"
     bstat=1
 fi
 
 grep 'Error: Re-read' tmp/log1.out > /dev/null
 if test $? = 0; then
-    echo "Found Re-read errors"
+    print_debug "ERROR: Found Re-read errors"
     bstat=1
 fi