From 63056087abc21974eaae7b7d578e58200ab48b24 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Mon, 3 Aug 2009 10:14:48 -0400 Subject: [PATCH] tests: do not execute while in a sub-processus In a sub-processus, shell variable assignment are lost. Signed-off-by: Jean Privat --- tests/tests.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 "! " -- 1.7.9.5