From: Alexis Laferrière Date: Wed, 1 Oct 2014 17:02:06 +0000 (-0400) Subject: tests.sh: allow errlist file inside outdir X-Git-Tag: v0.6.10~39^2~2 X-Git-Url: http://nitlanguage.org tests.sh: allow errlist file inside outdir Signed-off-by: Alexis Laferrière --- diff --git a/tests/tests.sh b/tests/tests.sh index 13fdc69..c43c767 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -374,16 +374,20 @@ fi # Mark to distinguish files among tests # MARK= -# File where error tests are outputed -# Old ERRLIST is backuped -ERRLIST=${ERRLIST:-errlist} -ERRLIST_TARGET=$ERRLIST - if [ $# = 0 ]; then usage; exit fi +# CLEAN the out directory +rm -rf "$outdir/" 2>/dev/null +mkdir "$outdir" 2>/dev/null + +# File where error tests are outputed +# Old ERRLIST is backuped +ERRLIST=${ERRLIST:-errlist} +ERRLIST_TARGET=$ERRLIST + # Initiate new ERRLIST if [ "x$ERRLIST" = "x" ]; then ERRLIST=/dev/null @@ -398,10 +402,6 @@ todos="" xml="tests-$engine.xml" echo >$xml "" -# CLEAN the out directory -rm -rf "$outdir/" 2>/dev/null -mkdir "$outdir" 2>/dev/null - for ii in "$@"; do if [ ! -f $ii ]; then echo "File '$ii' does not exist."