]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/vtape-test-changer
regress: add function to create many dirs
[bacula/bacula] / regress / tests / vtape-test-changer
index b4795ef3e75e0cf5c3b513767bf529ae33dcf156..fabbbcb69a4dd6e8e3778664cf31c60ba3d2afa9 100755 (executable)
@@ -19,8 +19,8 @@ require_vtape
 
 scripts/cleanup
 scripts/copy-tape-confs
-cp scripts/bacula-dir-vtape.conf bin/bacula-dir.conf
-cp scripts/bacula-sd-vtape.conf bin/bacula-sd.conf
+cp $rscripts/bacula-dir-vtape.conf $conf/bacula-dir.conf
+cp $rscripts/bacula-sd-vtape.conf $conf/bacula-sd.conf
 scripts/prepare-fake-autochanger
 
 echo "${cwd}/build" >${cwd}/tmp/file-list
@@ -37,7 +37,7 @@ clientname=`awk '/Name = .*-fd/ { if (!ok) { print $3 ; ok=1 } }' bin/bacula-dir
 
 # Write out bconsole commands
 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
 messages
 @$out ${cwd}/tmp/log6.out
 @#setdebug level=200 storage=LTO1
@@ -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
@@ -141,4 +141,3 @@ if test $? = 0; then
 fi
 
 end_test
-