]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/restore-seek-tape
Add more debug
[bacula/bacula] / regress / tests / restore-seek-tape
index fe3fe3c42b8bf6e6ce43b6e98f4a00fdaf0ec4dc..aa394beb60ba357676e2f3031503b52f83624d61 100755 (executable)
@@ -9,10 +9,9 @@
 TestName="restore-seek-tape"
 JobName=restore-tape-seek
 . scripts/functions
-set_debug 0
 
 copy_tape_confs
-echo "${cwd}/tmp/build" >/tmp/file-list
+echo "${cwd}/tmp/build" >${cwd}/tmp/file-list
 rm -rf ${cwd}/tmp/build
 mkdir ${cwd}/tmp/build
 # Copy only the .c files (to be restored)
@@ -25,7 +24,7 @@ done
 cd ${cwd}/tmp/build
 ls >../1
 cd ..
-sed s%\^%${cwd}/tmp/build/% 1 >restore-list
+sed s%\^%${cwd}/tmp/build/% 1 | sort | uniq >restore-list
 #
 # At this point restore-list contains the list
 #  of files we will restore
@@ -48,10 +47,10 @@ sed "s%# Maximum File Size = 1000000%  Maximum File Size = 10KB%" ${cwd}/tmp/1 >
 change_jobname NightlySave $JobName
 start_test
 
-cat <<END_OF_DATA >tmp/bconcmds
+cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 @$out /dev/null
 messages
-@$out tmp/log1.out
+@$out ${cwd}/tmp/log1.out
 label storage=DDS-4 volume=TestVolume001 pool=Default
 run job=$JobName yes
 wait
@@ -59,7 +58,7 @@ messages
 @#
 @# now do a restore
 @#
-@$out tmp/log2.out
+@$out ${cwd}/tmp/log2.out
 setdebug level=30 fd
 setdebug level=10 storage=DDS-4
 sql