[med-svn] [mia] 01/01: add printing out the test log if make test fails

Gert Wollny gert-guest at moszumanska.debian.org
Wed Jan 7 11:22:50 UTC 2015


This is an automated email from the git hooks/post-receive script.

gert-guest pushed a commit to branch master
in repository mia.

commit d69f6c99c8d4a024705b058d98930a7b19bb32de
Author: Gert Wollny <gw.fossdev at gmail.com>
Date:   Wed Jan 7 12:22:39 2015 +0100

    add printing out the test log if make test fails
---
 debian/rules | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 7ca15db..79fd505 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,7 +8,7 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -fvisibility=hidden
 
 export DH_ALWAYS_EXCLUDE=jquery.js
 
-.PHONY: override_dh_strip override_dh_shlibdeps 
+.PHONY: override_dh_strip override_dh_shlibdeps override_dh_auto_test
 
 %:
 	dh $@ --parallel
@@ -27,3 +27,10 @@ override_dh_strip:
 override_dh_shlibdeps:
 	dh_shlibdeps -- $(shell find  debian/libmia-2.2-0/ -name "*.mia")
 
+override_dh_auto_test:
+	dh_auto_test || \
+		( echo "Test log begin =========:"  \
+		&& cat `pwd`/obj-*/Testing/Temporary/LastTest.log \
+		&& echo "Test log end =========:" \
+		&& exit 1)
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/mia.git



More information about the debian-med-commit mailing list