]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/lib-test-root
ebl update and make it working
[bacula/bacula] / regress / tests / lib-test-root
index d50a5e067f14a017573fb2d5bd5e519636a75c6d..54da62c7d459c72119abcf6d8e2afbb9c562b47b 100755 (executable)
@@ -11,14 +11,14 @@ require_root
 
 scripts/cleanup
 scripts/copy-test-confs
-echo "/lib" >/tmp/file-list
+echo "/lib" >${cwd}/tmp/file-list
 
 start_test
 
-cat <<END_OF_DATA >tmp/bconcmds
+cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 @output /dev/null
 messages
-@output tmp/log1.out
+@output ${cwd}/tmp/log1.out
 label storage=File
 TestVolume001
 run job=NightlySave
@@ -28,7 +28,7 @@ messages
 @# 
 @# now do a restore
 @#
-@output tmp/log2.out
+@output ${cwd}/tmp/log2.out
 restore where=${cwd}/tmp/bacula-restores select    
 unmark *
 mark *
@@ -59,7 +59,7 @@ sort <1 >restored
 rm -f 1
 #
 cd ${cwd}
-diff tmp/original tmp/restored 2>&1 1>/dev/null
+diff ${cwd}/tmp/original ${cwd}/tmp/restored 2>&1 1>/dev/null
 if [ $? != 0 ] ; then
    echo " "
    echo " "