[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Debian: log/irc signal name for convenience
Holger Levsen
holger at layer-acht.org
Sat Dec 3 13:09:40 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit a5695fb1ded4595fcbd7d59338298cc4737f341f
Author: Daniel Shahaf <danielsh at apache.org>
Date: Sat Dec 3 12:56:20 2016 +0000
reproducible Debian: log/irc signal name for convenience
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_build.sh | 5 +++++
bin/reproducible_common.sh | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 79dfef9..8884165 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -424,6 +424,11 @@ call_diffoscope_on_changes_files() {
dbd_timeout $TIMEOUT
;;
*)
+ # Process killed by signal exits with 128+${signal number}.
+ # 31 = SIGSYS = maximum signal number in signal(7)
+ if (( $RESULT > 128 )) && (( $RESULT <= 128+31 )); then
+ RESULT="$RESULT (SIG$(kill -l $(($RESULT - 128))))"
+ fi
handle_ftbr "Something weird happened when running $DIFFOSCOPE (which exited with $RESULT) and I don't know how to handle it"
irc_message debian-reproducible "Something weird happened when running $DIFFOSCOPE (which exited with $RESULT) and I don't know how to handle it. Please check $RBUILDLOG and $DEBIAN_URL/$SUITE/$ARCH/$SRCPACKAGE"
;;
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index 0daac6b..7a4d523 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -615,6 +615,11 @@ call_diffoscope() {
fi
;;
*)
+ # Process killed by signal exits with 128+${signal number}.
+ # 31 = SIGSYS = maximum signal number in signal(7)
+ if (( $RESULT > 128 )) && (( $RESULT <= 128+31 )); then
+ RESULT="$RESULT (SIG$(kill -l $(($RESULT - 128))))"
+ fi
msg="$(date -u) - Something weird happened when running $DIFFOSCOPE on $1/$2 (which exited with $RESULT) and I don't know how to handle it."
;;
esac
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list