Split the refleak mail body into two parts, the first being those failing
tests which are deemed more important issues, the second those which are
known to have difficult to solve problems and are generally expected to
leak. Hopefully this doesn't break the script...
diff --git a/Misc/build.sh b/Misc/build.sh
index d6b18f0..bbce072 100755
--- a/Misc/build.sh
+++ b/Misc/build.sh
@@ -97,7 +97,17 @@
if [ "$FAILURE_CC" != "" ]; then
dest="$dest -c $FAILURE_CC"
fi
- mutt -s "$FAILURE_SUBJECT $1 ($NUM_FAILURES)" $dest < $2
+ if [ "x$3" != "x" ] ; then
+ (echo "More important issues:"
+ echo "----------------------"
+ egrep -v "$3" < $2
+ echo ""
+ echo "Less important issues:"
+ echo "----------------------"
+ egrep "$3" < $2)
+ else
+ cat $2
+ fi | mutt -s "$FAILURE_SUBJECT $1 ($NUM_FAILURES)" $dest
fi
}
@@ -192,9 +202,10 @@
## ensure that the reflog exists so the grep doesn't fail
touch $REFLOG
$PYTHON $REGRTEST_ARGS -R 4:3:$REFLOG -u network $LEAKY_SKIPS >& build/$F
- NUM_FAILURES=`egrep -vc "($LEAKY_TESTS|sum=0)" $REFLOG`
+ LEAK_PAT="($LEAKY_TESTS|sum=0)"
+ NUM_FAILURES=`egrep -vc "$LEAK_PAT" $REFLOG`
update_status "Testing refleaks ($NUM_FAILURES failures)" "$F" $start
- mail_on_failure "refleak" $REFLOG
+ mail_on_failure "refleak" $REFLOG "$LEAK_PAT"
## now try to run all the tests
F=make-testall.out