From 84897cd005fd359c8aebe9c3d923635c02f47f62 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Thu, 28 May 2015 22:06:10 -0400 Subject: [PATCH] tests: compile dir is `nit_compile`, and cleannit Signed-off-by: Jean Privat --- tests/tests.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/tests.sh b/tests/tests.sh index 2769eba..3fd5510 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -35,7 +35,7 @@ JNI_LIB_PATH=`dirname ${paths[0]}` shopt -u nullglob outdir="out" -compdir=".nit_compile" +compdir="nit_compile" usage() { @@ -48,7 +48,7 @@ Usage: $e [options] modulenames --engine Use a specific engine (default=nitc) --noskip Do not skip a test even if the .skip file matches --outdir Use a specific output folder (default=out/) ---compdir Use a specific temporary compilation folder (default=.nit_compile) +--compdir Use a specific temporary compilation folder (default=$compdir) --node Run as a node in parallel, will not output context information --autosav Copy the .res files directly in the sav folder overriding existing .res files END @@ -564,6 +564,8 @@ END cat -- "$ff.compile.log" cat >&2 -- "$ff.cmp.err" fi + # Clean + rm -r "$compdir" 2>/dev/null fi if [ "$engine" = "emscripten" ]; then echo > "$ff.bin" "nodejs $ffout \"\$@\"" -- 1.7.9.5