[Kst] kdeextragear-2/kst/tests

George Staikos staikos at kde.org
Tue Nov 30 02:52:19 CET 2004


CVS commit by staikos: 

fix a couple regressions in the regression suite runner :)


  M +8 -5      runregression.sh   1.5


--- kdeextragear-2/kst/tests/runregression.sh  #1.4:1.5
@@ -41,12 +41,13 @@
         echo "-----------------------------------------------------------" >> $CONSOLELOG
         echo "Running test: $i" >> $CONSOLELOG
-        $VALGRIND ./$i 2>&1 | grep -v QPixmap >>$CONSOLELOG
-        echo >>$CONSOLELOG
+        output=`$VALGRIND ./$i 2>&1`
         FAILED=$?
+        echo "$output" | grep -v QPixmap >>$CONSOLELOG
         if [ $FAILED -gt 0 ]; then
-                echo "$FAILED testcases failed in $i";
+                echo "$FAILED testcases failed in $i" | tee -a $CONSOLELOG
         fi
+        echo >>$CONSOLELOG
         echo Code coverage: >>$CONSOLELOG
-        pushd ../kst
+        pushd ../kst >/dev/null 2>&1
         filenames='$'"$i"_FILES;
         list=`eval echo $filenames`
@@ -66,7 +67,9 @@
                 done
         done
-        popd
+        popd >/dev/null 2>&1
         echo >>$CONSOLELOG
         echo >>$CONSOLELOG
 done
 
+exit 0
+





More information about the Kst mailing list