Commit 863dff51 authored by Martin Pool's avatar Martin Pool

Cleanup check_logs feature.

parent 3fedd74b
......@@ -147,8 +147,7 @@ do
continue
fi
echo "------------------------------------------------------------"
echo "----- $testbase running"
echo "----- $testbase starting"
if sh $RUNSHFLAGS "$testscript"
then
......
......@@ -83,3 +83,18 @@ checkit() {
fi
}
# In fact, we need a more general feature of capturing all stderr/log files,
# and dumping them if something goes wrong.
checkforlogs() {
# skip it if we're under debian-test
if test -n "${Debian}" ; then return 0 ; fi
if [ -f $1 -a -s $1 ] ; then
echo "Failures have occurred. $1 follows:" >&2
cat $1 >&2
exit 1
fi
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment