fix for tap tests

Change-Id: Ic79cfdaf420cbf15a1aba6e30c821f35b726d0da
This commit is contained in:
Ben Gras 2013-06-17 09:12:17 +00:00
parent 9fddecf31f
commit fa86f72420

View file

@ -116,7 +116,13 @@ do
testid="`echo $i | sed 's/\..*//'`"
ARG=`eval echo "\\${ARGS_$testid}"`
runtest $i $ARG 2>&1 | sed "s/^/$diagprefix/"
if [ "$tapmode" ]
then out=out.$$
rm -f $out
runtest $i $ARG >$out 2>&1
else runtest $i $ARG
fi
FAIL=$?
if [ $FAIL -eq 0 ]
@ -130,6 +136,11 @@ do
failed=`expr $failed + 1`
badones=`echo $badones " " $i`
fi
if [ "$tapmode" ]
then cat $out | sed "s/^/$diagprefix/"
rm -f $out
fi
else
skipped=`expr $skipped + 1`
fi