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
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
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

Reply via email to