From: Jean Privat Date: Mon, 3 Aug 2009 14:14:48 +0000 (-0400) Subject: tests: do not execute while in a sub-processus X-Git-Tag: v0.3~83 X-Git-Url: http://nitlanguage.org tests: do not execute while in a sub-processus In a sub-processus, shell variable assignment are lost. Signed-off-by: Jean Privat --- diff --git a/tests/tests.sh b/tests/tests.sh index b208c71..19b278c 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -206,7 +206,6 @@ for ii in "$@"; do if [ -f "$f.args" ]; then fargs=$f.args cptr=0 - cat $fargs | while read line; do ((cptr=cptr+1)) args=$line @@ -234,7 +233,7 @@ for ii in "$@"; do cat "$fff.err" >> "$fff.res" fi process_result $fff - done + done < $fargs fi else echo -n "! "