]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/vtape-test-changer
Tweak virtual changer scripts
[bacula/bacula] / regress / tests / vtape-test-changer
index c2811a20679c4aaff3bfa17beb76a0f7279ed8e0..e866200e18d67014c8818d710e5d7c65eab29dfa 100755 (executable)
@@ -30,7 +30,7 @@ start_test
 when1=`perl -MPOSIX -e "print strftime('%F %T', localtime(time+30))"`
 when2=`perl -MPOSIX -e "print strftime('%F %T', localtime(time+45))"`
 
-clientname=`awk '/Name = .*-fd/ { if (!ok) { print $3 ; ok=1 } }' $bin/bacula-dir.conf`
+clientname=`awk '/Name = .*-fd/ { if (!ok) { print $3 ; ok=1 } }' bin/bacula-dir.conf`
 
 # Catalog record for cleaning tape "CLN01" successfully created.
 # CLN01      | Cleaning
@@ -88,7 +88,7 @@ messages
 @# 
 @# now do a restore
 @#
-restore fileset="Full Set" pool=Diff where=${cwd}/tmp/bacula-restores select all done
+restore client=$clientname fileset="Full Set" pool=Diff where=${cwd}/tmp/bacula-restores select all done
 yes
 wait
 messages