summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>2009-12-13 18:55:57 +0100
committerDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>2009-12-13 18:55:57 +0100
commitb082e18967dc02fd9a229788d4f738013c4e714c (patch)
tree15998d21d1bbe56f4ba9bc87bbed5c9830362163
parentIn a bit of paranoia, delete eventual previous logs earlier. (diff)
downloadflameeyes-tinderbox-b082e18967dc02fd9a229788d4f738013c4e714c.tar.gz
flameeyes-tinderbox-b082e18967dc02fd9a229788d4f738013c4e714c.tar.bz2
flameeyes-tinderbox-b082e18967dc02fd9a229788d4f738013c4e714c.zip
Show some further statistics about completed merges.
-rwxr-xr-xbashrc14
1 files changed, 12 insertions, 2 deletions
diff --git a/bashrc b/bashrc
index 188170b..f2de12e 100755
--- a/bashrc
+++ b/bashrc
@@ -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
}