]> Zhao Yanbai Git Server - minix.git/commitdiff
fix for tap tests 53/653/2
authorBen Gras <ben@minix3.org>
Mon, 17 Jun 2013 09:12:17 +0000 (09:12 +0000)
committerBen Gras <ben@minix3.org>
Mon, 17 Jun 2013 11:43:57 +0000 (11:43 +0000)
Change-Id: Ic79cfdaf420cbf15a1aba6e30c821f35b726d0da

test/run

index a8719e03f344973d11f740556e88c63906a24e7a..fa6d2137688f679c98b14f09694d817c61f0abfb 100755 (executable)
--- 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