From: batt Date: Mon, 27 Sep 2010 13:09:14 +0000 (+0000) Subject: Restore separate logs; cat errors to stdout. X-Git-Tag: 2.6.0~87 X-Git-Url: https://codewiz.org/gitweb?p=bertos.git;a=commitdiff_plain;h=27a8a9ce055458f8d9ca5a1276eddb27dd9b6088 Restore separate logs; cat errors to stdout. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4314 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/test/run_tests.sh b/test/run_tests.sh index 5c7073b7..393d0e61 100755 --- a/test/run_tests.sh +++ b/test/run_tests.sh @@ -94,21 +94,24 @@ for src in $TESTS; do [ $VERBOSE -gt 0 ] && echo "Preparing $name..." [ $VERBOSE -gt 4 ] && echo " $PREPARECMD" - if $PREPARECMD 2>&1 >>$buildout; then + if $PREPARECMD 2>&1 | tee -a >>$buildout $testdir/$name.prep; then [ $VERBOSE -gt 0 ] && echo "Building $name..." [ $VERBOSE -gt 4 ] && echo " $BUILDCMD" - if $BUILDCMD 2>&1 >>$buildout; then + if $BUILDCMD 2>&1 | tee -a >>$buildout $testdir/$name.build; then [ $VERBOSE -gt 0 ] && echo "Running $name..." - if ! $exe 2>&1 >>$runout; then + if ! $exe 2>&1 | tee -a >>$runout $testdir/$name.out; then echo "FAILED [RUN]: $name" + cat $testdir/$name.out exit 2 fi else echo "FAILED [BUILD]: $name" + cat $testdir/$name.build exit 3 fi else echo "FAILED [PREPARING]: $name" + cat $testdir/$name.prep exit 4 fi done