summaryrefslogtreecommitdiff
path: root/source3/script
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-02-21 12:48:15 +0100
committerMichael Adam <obnox@samba.org>2011-02-21 12:50:06 +0100
commit4ee1c7c493a868ac271fd4ca19218ec9de51b88a (patch)
tree7322de7e8d7045dbcf9ca4f76052c75121887538 /source3/script
parent2ba57fd1832a4bc3c4c652c08e5f62054ecab79b (diff)
downloadsamba-4ee1c7c493a868ac271fd4ca19218ec9de51b88a.tar.gz
samba-4ee1c7c493a868ac271fd4ca19218ec9de51b88a.tar.bz2
samba-4ee1c7c493a868ac271fd4ca19218ec9de51b88a.zip
s3:tests: clean up old log directories of the registry.roundtrip test
Diffstat (limited to 'source3/script')
-rwxr-xr-xsource3/script/tests/test_net_registry_roundtrip.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/script/tests/test_net_registry_roundtrip.sh b/source3/script/tests/test_net_registry_roundtrip.sh
index 7f13bc2f74..88919ec93c 100755
--- a/source3/script/tests/test_net_registry_roundtrip.sh
+++ b/source3/script/tests/test_net_registry_roundtrip.sh
@@ -44,9 +44,11 @@ conf_roundtrip_step() {
# echo -n .
}
+LOGDIR_PREFIX="conf_roundtrip"
+
conf_roundtrip()
{
- local DIR=$(mktemp -d --tmpdir=$PREFIX conf_roundtrip_XXXX)
+ local DIR=$(mktemp -d --tmpdir=$PREFIX ${LOGDIR_PREFIX}_XXXX)
local LOG=$DIR/log
echo conf_roundtrip $1 > $LOG
@@ -98,6 +100,12 @@ conf_roundtrip()
CONF_FILES=${CONF_FILES:-$(find $SRCDIR/ -name '*.conf' | xargs grep -l "\[global\]")}
+# remove old logs:
+for OLDDIR in $(find ${PREFIX} -type d -name "${LOGDIR_PREFIX}_*") ; do
+ echo "removing old directory ${OLDDIR}"
+ rm -rf ${OLDDIR}
+done
+
for conf_file in $CONF_FILES
do
testit "conf_roundtrip $conf_file" \