From: Ben Gras Date: Mon, 17 Jun 2013 09:12:17 +0000 (+0000) Subject: fix for tap tests X-Git-Tag: v3.3.0~915 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=fa86f724200cd8f02cb25204db6bacd167f72aec;p=minix.git fix for tap tests Change-Id: Ic79cfdaf420cbf15a1aba6e30c821f35b726d0da --- diff --git a/test/run b/test/run index a8719e03f..fa6d21376 100755 --- a/test/run +++ b/test/run @@ -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