if [ -f Testing/TAG ] ; then
find $WORKSPACE -iname "*.memcheck" -exec mv {} $WORKSPACE/memcheck \;
#remove all "empty" files
- pcregrep -r -l -M "status\>\n\n\<errorcounts" $WORKSPACE/memcheck/* | xargs rm -f
+ grep -r -L "error>" $WORKSPACE/memcheck | xargs rm -f
mv Testing/`head -n 1 < Testing/TAG`/Test.xml $WORKSPACE/DynamicAnalysis.xml
fi