diff options
author | 2012-06-15 17:09:44 +0200 | |
---|---|---|
committer | 2012-06-15 17:09:44 +0200 | |
commit | d461fd716f06950acc65e70c629e93e6622992e6 (patch) | |
tree | aa250c6921fab4ae71dad2e1f9febd62ad4072ca | |
parent | Disable split logs (required for proper analysis). (diff) | |
download | flameeyes-tinderbox-d461fd716f06950acc65e70c629e93e6622992e6.tar.gz flameeyes-tinderbox-d461fd716f06950acc65e70c629e93e6622992e6.tar.bz2 flameeyes-tinderbox-d461fd716f06950acc65e70c629e93e6622992e6.zip |
Send the log to the analysis system whenever a package fails or succeeds.
-rwxr-xr-x | bashrc | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -41,14 +41,24 @@ tinderbox_stats() { fi } +tinderbox_send_log() { + tar cf - "${PORTAGE_LOG_FILE}" | \ + nc6 --send-only --hold-timeout=0 ${TINDERBOX_ANALYSIS_ADDR} +} + tinderbox_success() { dent_me "${CATEGORY}/${PF} merge #succeded$(tinderbox_stats)" + + tinderbox_send_log } tinderbox_failed() { [[ ${EBUILD_PHASE} == test ]] && return 0 + dent_me "${CATEGORY}/${PF} merge #failed$(tinderbox_stats)" SANDBOX_ON=0 sed -i -e "\$a =${CATEGORY}/${PF}" /etc/portage/package.mask/currentrun + + tinderbox_send_log } tinderbox_if_file() { |