Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Tweak regression cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Feb 5, 2013
1 parent 016ee60 commit 0b87be8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions scripts/cleanup
Expand Up @@ -2,8 +2,12 @@
#
# Cleanup left over files -- both before and after test run
#

. ./config
. scripts/functions

cwd=`pwd`

rm -rf ${tmp}/FileVolume*
rm -rf ${tmp}/TestVolume001 ${tmp}bareos-restores ${tmp}/Small*
rm -rf ${tmp}/sed_tmp ${tmp}/file-list
Expand All @@ -16,16 +20,15 @@ rm -rf ${tmp}disk-changer
rm -f ${cwd}/bin/plugins/test-plugin-fd.so
find . -name "gigaslam.gif" -exec rm -f {} \;


# bin directory does not always exist
if [ -d ${bin} ] ; then
if [ -f ${bin}/bareos ] ; then
${bin}/bareos stop 2>&1 >/dev/null
fi
cd ${scripts}
./drop_bareos_tables >/dev/null 2>&1
./make_bareos_tables >/dev/null 2>&1
./grant_bareos_privileges >/dev/null 2>&1
./drop_bareos_tables ${DBTYPE} >/dev/null 2>&1
./make_bareos_tables ${DBTYPE} >/dev/null 2>&1
./grant_bareos_privileges ${DBTYPE} >/dev/null 2>&1
cd ${cwd}
fi

Expand Down

0 comments on commit 0b87be8

Please sign in to comment.