tests.sh: add env var to move xml file
authorAlexis Laferrière <alexis.laf@xymus.net>
Thu, 2 Oct 2014 03:04:24 +0000 (23:04 -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 c43c767..c0965b3 100755 (executable)
@@ -399,7 +399,13 @@ fi
 ok=""
 nok=""
 todos=""
-xml="tests-$engine.xml"
+
+if [ "x$XMLDIR" = "x" ]; then
+       xml="tests-$engine.xml"
+else
+       xml="$XMLDIR/tests-$engine.xml"
+fi
+
 echo >$xml "<testsuites><testsuite>"
 
 for ii in "$@"; do