diff options
author | Michael Adam <obnox@samba.org> | 2011-02-21 12:48:15 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-02-21 12:50:06 +0100 |
commit | 4ee1c7c493a868ac271fd4ca19218ec9de51b88a (patch) | |
tree | 7322de7e8d7045dbcf9ca4f76052c75121887538 | |
parent | 2ba57fd1832a4bc3c4c652c08e5f62054ecab79b (diff) | |
download | samba-4ee1c7c493a868ac271fd4ca19218ec9de51b88a.tar.gz samba-4ee1c7c493a868ac271fd4ca19218ec9de51b88a.tar.bz2 samba-4ee1c7c493a868ac271fd4ca19218ec9de51b88a.zip |
s3:tests: clean up old log directories of the registry.roundtrip test
-rwxr-xr-x | source3/script/tests/test_net_registry_roundtrip.sh | 10 |
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" \ |