[cvs] bogofilter/tests t.frame,1.24,1.25
Matthias Andree
matthias.andree at gmx.de
Tue Jan 21 00:48:34 CET 2003
relson at users.sourceforge.net writes:
> Update of /cvsroot/bogofilter/bogofilter/tests
> In directory sc8-pr-cvs1:/tmp/cvs-serv7974
>
> Modified Files:
> t.frame
> Log Message:
> Ensure output directory is empty at start of test.
>
> Index: t.frame
> ===================================================================
> RCS file: /cvsroot/bogofilter/bogofilter/tests/t.frame,v
> retrieving revision 1.24
> retrieving revision 1.25
> diff -u -d -r1.24 -r1.25
> --- t.frame 20 Jan 2003 17:47:15 -0000 1.24
> +++ t.frame 20 Jan 2003 18:41:08 -0000 1.25
> @@ -25,7 +25,11 @@
> while : ; do
> TMPDIR=${BF_TESTDIR}/checks.$$.`date +"%Y%m%dT%H%M%S"`
> if test x$SUPPRESS_DELETE = xNO ; then TMPDIR=${BF_TESTDIR}/outputs.`date +"%m%d"` ; fi
> - [ -d $TMPDIR ] || mkdir $TMPDIR
> + if [ ! -d $TMPDIR ] ; then
> + mkdir $TMPDIR
> + else
> + rm -rf $TMPDIR/*
> + fi
> [ -d $TMPDIR ] && break
> sleep 1
> done
It's been a long time since I've last had a look at the code, but this
ultimately breaks the unique name generation we're doing here. I'm
cleaning this up now, CVS commit in a few minutes.
--
Matthias Andree
More information about the bogofilter-dev
mailing list