tests.sh: allow errlist file inside outdir
authorAlexis Laferrière <alexis.laf@xymus.net>
Wed, 1 Oct 2014 17:02:06 +0000 (13:02 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Fri, 3 Oct 2014 21:32:43 +0000 (17:32 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

tests/tests.sh

index 13fdc69..c43c767 100755 (executable)
@@ -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 "<testsuites><testsuite>"
 
-# 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."