X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Flib-tape-root;h=b02c15284f28f9b8cae67f5de13e7225299c3a34;hb=fd7101218fa0a6a4bf69db51770fbe18b3ec2aad;hp=ea9667cadbd5afb97aec429bf32f1bfc01fff1ef;hpb=f2f906bef8f5b7236d2f5eef14858089260f0e2e;p=bacula%2Fbacula diff --git a/regress/tests/lib-tape-root b/regress/tests/lib-tape-root index ea9667cadb..b02c15284f 100755 --- a/regress/tests/lib-tape-root +++ b/regress/tests/lib-tape-root @@ -4,13 +4,17 @@ # then restore it. # cwd=`pwd` +. scripts/functions bin/bacula stop 2>&1 >/dev/null -bin/drop_sqlite_tables -bin/make_sqlite_tables +cd bin +./drop_bacula_tables >/dev/null 2>&1 +./make_bacula_tables >/dev/null 2>&1 +./grant_bacula_privileges 2>&1 >/dev/null +cd .. -scripts/copy-tape-confs scripts/cleanup-tape -echo "/lib" >/tmp/file-list +scripts/copy-tape-confs +echo "/lib" >${cwd}/tmp/file-list echo " " echo " " echo " === Starting lib-tape-root test ===" @@ -20,7 +24,7 @@ bin/bacula start 2>&1 >/dev/null bin/bconsole -c bin/bconsole.conf <restored rm -f 1 # cd ${cwd} -diff tmp/original tmp/restored 2>&1 1>/dev/nul +diff ${cwd}/tmp/original ${cwd}/tmp/restored 2>&1 1>/dev/nul if [ $? != 0 ] ; then echo " " echo " "