Sort and pretty-print result lists of SKIPped, FAILed, CRASHed and VALGR tests from ./test.py
authorPeter D. Barnes, Jr. <barnes26@llnl.gov>
Wed, 15 Oct 2014 11:29:30 -0700
changeset 11031 88aba7d03b9a
parent 11030 9914c1a2373f
child 11032 58ee84e1c120
Sort and pretty-print result lists of SKIPped, FAILed, CRASHed and VALGR tests from ./test.py
test.py
--- a/test.py	Wed Oct 15 07:38:06 2014 -0700
+++ b/test.py	Wed Oct 15 11:29:30 2014 -0700
@@ -1772,13 +1772,17 @@
     # Repeat summary of skipped, failed, crashed, valgrind events 
     #
     if skipped_testnames:
-        print 'List of SKIPped tests: %s' % ' '.join(map(str, skipped_testnames))
+        skipped_testnames.sort()
+        print 'List of SKIPped tests: %s' % '\n    '.join(map(str, skipped_testnames))
     if failed_testnames:
-        print 'List of FAILed tests: %s' % ' '.join(map(str, failed_testnames))
+        failed_testnames.sort()
+        print 'List of FAILed tests: %s' % '\n    '.join(map(str, failed_testnames))
     if crashed_testnames:
-        print 'List of CRASHed tests: %s' % ' '.join(map(str, crashed_testnames))
+        crashed_testnames.sort()
+        print 'List of CRASHed tests: %s' % '\n    '.join(map(str, crashed_testnames))
     if valgrind_testnames:
-        print 'List of VALGR failures: %s' % ' '.join(map(str, valgrind_testnames))
+        valgrind_testnames.sort()
+        print 'List of VALGR failures: %s' % '\n    '.join(map(str, valgrind_testnames))
     #
     # The last things to do are to translate the XML results file to "human
     # readable form" if the user asked for it (or make an XML file somewhere)