]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/etc-test-root
Use getfattr and setfattr on Linux not attr as that is a XFS tool which works too...
[bacula/bacula] / regress / tests / etc-test-root
index 2c5e24a1db17336cc0e57fd2e4ba9c462222a21b..9ba0b1105ca9e4ff704ddbcdcb717b05fb0bb150 100755 (executable)
@@ -8,14 +8,14 @@ TestName="etc-test-root"
 
 scripts/cleanup
 scripts/copy-test-confs
-echo "/etc" >/tmp/file-list
+echo "/etc" >${cwd}/tmp/file-list
 
 start_test
 
-cat <<END_OF_DATA >tmp/bconcmds
-@output /dev/null
+cat <<END_OF_DATA >${cwd}/tmp/bconcmds
+@$out /dev/null
 messages
-@output tmp/log1.out
+@$out ${cwd}/tmp/log1.out
 label storage=File
 TestVolume001
 run job=NightlySave
@@ -25,7 +25,7 @@ messages
 @# 
 @# now do a restore
 @#
-@output tmp/log2.out
+@$out ${cwd}/tmp/log2.out
 restore where=${cwd}/tmp/bacula-restores select    
 unmark *
 mark *
@@ -33,7 +33,6 @@ done
 yes
 wait
 messages
-@output
 quit
 END_OF_DATA
 
@@ -51,7 +50,7 @@ sort <${cwd}/tmp/1 >${cwd}/tmp/original
 sort <${cwd}/tmp/2 >${cwd}/tmp/restored
 rm -f ${cwd}/tmp/1 ${cwd}/tmp/2
 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 " "