Bug#832252: ghc-testsuite: testsuite failure should cause FTBFS

Chris Lamb lamby at debian.org
Sat Jul 23 12:54:06 UTC 2016


Source: ghc-testsuite
Version: 7.10.3-1
Tags: patch
Severity: wishlist

Hi,

Due to the shell semantics, as we save the output using ``| tee output.txt``
this results in the package not actually FTBFS if the testsuite itself
fails..

Patch attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
diff --git a/debian/rules b/debian/rules
index 88e92cf..36b1ff2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,8 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+SHELL = /bin/bash
+
 %:
 	dh $@
 
@@ -11,7 +13,7 @@ override_dh_auto_build:
 	cp -al testsuite testsuite-run
 	# Does not seem to work:
 	# OUTPUT_SUMMARY="$(CURDIR)/debian/ghc-testsuite/usr/share/doc/ghc-testsuite/result.txt"
-	make -C testsuite-run \
+	set -o pipefail; make -C testsuite-run \
 		SKIPWAY="" \
 		fast=YES \
 		2>&1 | tee result.txt


More information about the Pkg-haskell-maintainers mailing list