Combine the passed, skipped, and failed tests into a
single list when displaying the timing results of
each test.

Signed-off-by: Tom Hromatka <tom.hroma...@oracle.com>
---
 ftests/ftests.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ftests/ftests.py b/ftests/ftests.py
index 0a9c35064d7d..7b39d6c9ec37 100755
--- a/ftests/ftests.py
+++ b/ftests/ftests.py
@@ -250,10 +250,10 @@ def run_tests(config):
         print("\t---------------------------------------------------------")
         time_str = "{0: 2.2f}".format(setup_time)
         print('\t{}{}'.format('{0: <35}'.format('setup'), '{0: 
>15}'.format(time_str)))
-        for test in passed_tests:
-            time_str = "{0: 2.2f}".format(test[1])
-            print('\t{}{}'.format('{0: <35}'.format(test[0]), '{0: 
>15}'.format(time_str)))
-        for test in failed_tests:
+
+        all_tests = passed_tests + skipped_tests + failed_tests
+        all_tests.sort()
+        for test in all_tests:
             time_str = "{0: 2.2f}".format(test[1])
             print('\t{}{}'.format('{0: <35}'.format(test[0]), '{0: 
>15}'.format(time_str)))
         time_str = "{0: 2.2f}".format(teardown_time)
-- 
2.25.4



_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to