]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/file-span-vol-test
Make verify job log same as other logs -- fixes bug #2328
[bacula/bacula] / regress / tests / file-span-vol-test
index e8b6ba3e2b351397b13d7bf1ed2213b78be53617..9d29497e18c06acf170ea19304551984fedda6ca 100755 (executable)
@@ -23,8 +23,9 @@ echo "${cwd}/build" >>${cwd}/tmp/file-list
 change_jobname NightlySave $JobName
 start_test
 
-# Remove last / and convert all / to cd commands
-CD=`echo $tmp | sed 's:/$::' | sed 's:/:\ncd :g'`
+# Remove last / and convert first / to "cd /"
+CD=`echo $tmp | sed 's:/$::' | sed 's:^/:cd /:'`
+echo "CD=${CD}"
 
 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 @output /dev/null
@@ -47,7 +48,7 @@ messages
 @$out ${cwd}/tmp/log2.out
 restore where=$tmp/bacula-restores select storage=File1
 unmark *
-$CD
+${CD}
 mark big
 done
 yes