This makes sure we do not abort a travis run without meaningful output
if [[ "$LASTEXIT" = "0" ]] ; then
echo_err "done (took ${DELTA_TIME}s)"
else
- echo_err -n "failed (Exit:$LASTEXIT Log:$(/usr/bin/nopaste -q -s Shadowcat -d "Parallel installfail" <<< "$LASTOUT")) retrying with sequential testing ... "
+ echo_err -n "failed (after ${DELTA_TIME}s Exit:$LASTEXIT Log:$(/usr/bin/nopaste -q -s Shadowcat -d "Parallel installfail" <<< "$LASTOUT")) retrying with sequential testing ... "
HARNESS_OPTIONS=""
LASTEXIT=0
}
cpan_inst() {
- cpan "$@" 2>&1
+ /usr/bin/timeout --kill-after=9.5m --signal=TERM 9m cpan "$@" 2>&1
# older perls do not have a CPAN which can exit with error on failed install
for m in "$@"; do