diff options
author | Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2009-12-13 18:55:57 +0100 |
---|---|---|
committer | Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2009-12-13 18:55:57 +0100 |
commit | b082e18967dc02fd9a229788d4f738013c4e714c (patch) | |
tree | 15998d21d1bbe56f4ba9bc87bbed5c9830362163 | |
parent | In a bit of paranoia, delete eventual previous logs earlier. (diff) | |
download | flameeyes-tinderbox-b082e18967dc02fd9a229788d4f738013c4e714c.tar.gz flameeyes-tinderbox-b082e18967dc02fd9a229788d4f738013c4e714c.tar.bz2 flameeyes-tinderbox-b082e18967dc02fd9a229788d4f738013c4e714c.zip |
Show some further statistics about completed merges.
-rwxr-xr-x | bashrc | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -11,13 +11,23 @@ pre_pkg_setup() { register_success_hook tinderbox_success } +tinderbox_stats() { + if fgrep -q 'Called src_test' "${PORTAGE_LOG_FILE}"; then + echo " tests failed" + fi + + if fgrep -q 'Detected file collision' "${PORTAGE_LOG_FILE}"; then + echo " #collisions" + fi +} + tinderbox_success() { - tweet_me "${CATEGORY}/${PF} merge #succeded" + tweet_me "${CATEGORY}/${PF} merge #succeded$(tinderbox_stats)" } tinderbox_mask_pkg() { [[ ${EBUILD_PHASE} == test ]] && return 0 - tweet_me "${CATEGORY}/${PF} merge #failed" + tweet_me "${CATEGORY}/${PF} merge #failed$(tinderbox_stats)" SANDBOX_ON=0 sed -i -e "\$a =${CATEGORY}/${PF}" /etc/portage/package.mask/currentrun } |