[commit: ghc] wip/misc-testsuite: testsuite: Print timeout duration on timeout failure (a2051df)

git at git.haskell.org git at git.haskell.org
Wed Jan 9 21:36:31 UTC 2019


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

On branch  : wip/misc-testsuite
Link       : http://ghc.haskell.org/trac/ghc/changeset/a2051df4463c89e4c6900bbd60c39999caef85ef/ghc

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

commit a2051df4463c89e4c6900bbd60c39999caef85ef
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Wed Jan 9 11:38:46 2019 -0500

    testsuite: Print timeout duration on timeout failure


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

a2051df4463c89e4c6900bbd60c39999caef85ef
 testsuite/driver/testlib.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 96024a9..bae4955 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -1921,7 +1921,7 @@ def runCmd(cmd, stdin=None, stdout=None, stderr=None, timeout_multiplier=1.0, pr
         stopNow()
     if r.returncode == 99 and getTestOpts().exit_code != 99:
         # Only print a message when timeout killed the process unexpectedly.
-        if_verbose(1, 'Timeout happened...killed process "{0}"...\n'.format(cmd))
+        if_verbose(1, 'Timeout happened ({0} seconds)...killed process "{1}"...\n'.format(timeout, cmd))
     return r.returncode
 
 # -----------------------------------------------------------------------------



More information about the ghc-commits mailing list