[commit: ghc] master: testsuite: Show stderr output on command failure (20880b5)

git at git.haskell.org git at git.haskell.org
Tue Jul 11 19:26:49 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/20880b56267059f98ca9ca099b596fb0b7cf0c7e/ghc

>---------------------------------------------------------------

commit 20880b56267059f98ca9ca099b596fb0b7cf0c7e
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Tue Jul 11 14:43:38 2017 -0400

    testsuite: Show stderr output on command failure
    
    Reviewers: austin
    
    Subscribers: rwbarton, thomie
    
    Differential Revision: https://phabricator.haskell.org/D3716


>---------------------------------------------------------------

20880b56267059f98ca9ca099b596fb0b7cf0c7e
 testsuite/driver/testutil.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuite/driver/testutil.py b/testsuite/driver/testutil.py
index d35fb81..dcba177 100644
--- a/testsuite/driver/testutil.py
+++ b/testsuite/driver/testutil.py
@@ -22,7 +22,7 @@ def getStdout(cmd_and_args):
     if r != 0:
         raise Exception("Command failed: " + str(cmd_and_args))
     if stderr:
-        raise Exception("stderr from command: " + str(cmd_and_args))
+        raise Exception("stderr from command: %s\nOutput:\n%s\n" % (cmd_and_args, stderr))
     return stdout
 
 def mkdirp(path):



More information about the ghc-commits mailing list