Scripts print more info on failure within buildbot

This commit is contained in:
Manuel Pégourié-Gonnard 2014-08-31 17:42:53 +02:00
parent c2b0092a1b
commit 7fa67728ad
2 changed files with 17 additions and 0 deletions

View File

@ -926,6 +926,15 @@ run_client() {
cp $SRV_OUT c-srv-${TESTS}.log
cp $CLI_OUT c-cli-${TESTS}.log
echo " ! outputs saved to c-srv-${TESTS}.log, c-cli-${TESTS}.log"
if [ "X${USER:-}" = Xbuildbot -o "X${LOGNAME:-}" = Xbuildbot ]; then
echo " ! server output:"
cat c-srv-${TESTS}.log
echo " ! ==================================================="
echo " ! client output:"
cat c-cli-${TESTS}.log
fi
FAILED=$(( $FAILED + 1 ))
;;
esac

View File

@ -113,6 +113,14 @@ fail() {
mv $CLI_OUT o-cli-${TESTS}.log
echo " ! outputs saved to o-srv-${TESTS}.log and o-cli-${TESTS}.log"
if [ "X${USER:-}" = Xbuildbot -o "X${LOGNAME:-}" = Xbuildbot ]; then
echo " ! server output:"
cat o-srv-${TESTS}.log
echo " ! ============================================================"
echo " ! client output:"
cat o-cli-${TESTS}.log
fi
FAILS=$(( $FAILS + 1 ))
}