tests: args can use `$WRITE` instead of guessing the right outfile name
authorJean Privat <jean@pryen.org>
Thu, 6 Feb 2014 17:40:15 +0000 (12:40 -0500)
committerJean Privat <jean@pryen.org>
Thu, 6 Feb 2014 17:40:15 +0000 (12:40 -0500)
Change-Id: Iba16d3d824daf723bc9e7a7e39a1252461053dd8
Signed-off-by: Jean Privat <jean@pryen.org>

tests/nitdoc.args
tests/nitmetrics.args
tests/nitunit.args
tests/tests.sh

index f984808..7b96e23 100644 (file)
@@ -1 +1 @@
-module_1.nit -d out/nitdoc_args1.write
+module_1.nit -d $WRITE
index f118275..3555fdb 100644 (file)
@@ -1 +1 @@
---all base_simple3.nit -d out/nitmetrics_args1.write
+--all base_simple3.nit -d $WRITE
index 2f1b55a..7572830 100644 (file)
@@ -1 +1 @@
-test_nitunit.nit --no-color -o out/nitunit_args1.write
+test_nitunit.nit --no-color -o $WRITE
index 57f0a37..8e785c2 100755 (executable)
@@ -456,7 +456,7 @@ END
                                        test -z "$tap" && echo -n "==> $name "
                                        echo "./$ff.bin $args" > "./$fff.bin"
                                        chmod +x "./$fff.bin"
-                                       sh -c "NIT_NO_STACK=1 $TIMEOUT ./$fff.bin < $inputs > $fff.res 2>$fff.err"
+                                       WRITE="$fff.write" sh -c "NIT_NO_STACK=1 $TIMEOUT ./$fff.bin < $inputs > $fff.res 2>$fff.err"
                                        if [ "x$verbose" = "xtrue" ]; then
                                                cat "$fff.res"
                                                cat >&2 "$fff.err"