[commit: ghc] master, wip/deploy-docs, wip/packaging-fail, wip/run-nofib, wip/windows-32bit: Print test suite results ("unexpected failures" etc.) in sorted order (7b213b8)

git at git.haskell.org git at git.haskell.org
Thu Mar 21 17:01:32 UTC 2019


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

On branches: master,wip/deploy-docs,wip/packaging-fail,wip/run-nofib,wip/windows-32bit
Link       : http://ghc.haskell.org/trac/ghc/changeset/7b213b8dc668be216cb2efd7140a2f0263a454e5/ghc

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

commit 7b213b8dc668be216cb2efd7140a2f0263a454e5
Author: Ömer Sinan Ağacan <omeragacan at gmail.com>
Date:   Tue Mar 19 12:53:51 2019 +0300

    Print test suite results ("unexpected failures" etc.) in sorted order
    
    Fixes #16425


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

7b213b8dc668be216cb2efd7140a2f0263a454e5
 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 a2e7dde..69c1a99 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -2214,7 +2214,7 @@ def printUnexpectedTests(file, testInfoss):
 
 def printTestInfosSummary(file, testInfos):
     maxDirLen = max(len(tr.directory) for tr in testInfos)
-    for result in testInfos:
+    for result in sorted(testInfos, key=lambda r: (r.testname.lower(), r.way, r.directory)):
         directory = result.directory.ljust(maxDirLen)
         file.write('   {directory}  {r.testname} [{r.reason}] ({r.way})\n'.format(
             r = result,



More information about the ghc-commits mailing list