[Qa-jenkins-scm] [jenkins.debian.net] 01/01: let diffoscope test fail by default

Holger Levsen holger at moszumanska.debian.org
Wed Mar 9 14:36:08 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 71d49151ea2ccfbcaf9d88a3a3bd9a77fd553bd9
Author: Holger Levsen <holger at layer-acht.org>
Date:   Wed Mar 9 15:35:54 2016 +0100

    let diffoscope test fail by default
---
 bin/diffoscope_pypi_test.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/bin/diffoscope_pypi_test.sh b/bin/diffoscope_pypi_test.sh
index 288e165..655fb4f 100755
--- a/bin/diffoscope_pypi_test.sh
+++ b/bin/diffoscope_pypi_test.sh
@@ -23,11 +23,17 @@ DIFFOSCOPE_IN_PYPI=$(grep "<title>" $TMPPYPI | cut -d ">" -f2- | cut -d ":" -f1
 echo
 echo
 if [ "$DIFFOSCOPE_IN_DEBIAN" = "$DIFFOSCOPE_IN_PYPI" ] ; then
-	echo "Yay. diffoscope in Debian has the same version as on PyPI."
+	echo "Yay. diffoscope in Debian has the same version as on PyPI: $DIFFOSCOPE_IN_DEBIAN"
 elif dpkg --compare-versions "$DIFFOSCOPE_IN_DEBIAN" gt "$DIFFOSCOPE_IN_PYPI" ; then
 	echo "Fail: diffoscope in Debian: $DIFFOSCOPE_IN_DEBIAN"
 	echo "Fail: diffoscope in PyPI:   $DIFFOSCOPE_IN_PYPI"
 	exit 1
+else
+	echo "diffoscope in Debian: $DIFFOSCOPE_IN_DEBIAN"
+	echo "diffoscope in PyPI:   $DIFFOSCOPE_IN_PYPI"
+	echo
+	echo "Failure is the default action…"
+	exit 1
 fi
 
 # the end

-- 
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