debian: On "make check" failure dump the testsuite log.
authorBen Pfaff <blp@nicira.com>
Tue, 16 Nov 2010 22:06:31 +0000 (14:06 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 16 Nov 2010 23:07:10 +0000 (15:07 -0800)
The Debian automatic build machines don't save any files from the build,
but they do preserve the build log, so dumping it to stdout is the only
reasonable way to get test failure information.

debian/rules

index b1f9065..6e99ff6 100755 (executable)
@@ -44,7 +44,10 @@ build-arch: build-arch-stamp
 build-arch-stamp: configure-stamp 
        $(MAKE) -C _debian
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-       $(MAKE) -C _debian check
+       if $(MAKE) -C _debian check; then :; else \
+               cat _debian/tests/testsuite.log; \
+               exit 1; \
+       fi
 endif
        touch $@