mailr17222 - /trunk/test_suite/test_suite_runner.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on July 10, 2012 - 14:14:
Author: bugman
Date: Tue Jul 10 14:14:07 2012
New Revision: 17222

URL: http://svn.gna.org/viewcvs/relax?rev=17222&view=rev
Log:
Improvements to the skipped test printout from the test suite.

Now all test categories (system, unit and GUI) are printed if a 
module/package is missing.  This
allows for better debugging.


Modified:
    trunk/test_suite/test_suite_runner.py

Modified: trunk/test_suite/test_suite_runner.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/test_suite_runner.py?rev=17222&r1=17221&r2=17222&view=diff
==============================================================================
--- trunk/test_suite/test_suite_runner.py (original)
+++ trunk/test_suite/test_suite_runner.py Tue Jul 10 14:14:07 2012
@@ -237,11 +237,11 @@
         # Header.
         print("Tests skipped due to missing packages/modules:\n")
         header = "%-30s" % "Module" 
-        if hasattr(self, 'system_result'):
+        if len(system_count):
             header = "%s %20s" % (header, "System test count")
-        if hasattr(self, 'unit_result'):
+        if len(unit_count):
             header = "%s %20s" % (header, "Unit test count")
-        if hasattr(self, 'gui_result'):
+        if len(gui_count):
             header = "%s %20s" % (header, "GUI test count")
         print('-'*len(header))
         print(header)
@@ -250,11 +250,11 @@
         # The table.
         for module in missing_modules:
             text = "%-30s" % module
-            if hasattr(self, 'system_result'):
+            if len(system_count):
                 text = "%s %20s" % (text, system_count[module])
-            if hasattr(self, 'unit_result'):
+            if len(unit_count):
                 text = "%s %20s" % (text, unit_count[module])
-            if hasattr(self, 'gui_result'):
+            if len(gui_count):
                 text = "%s %20s" % (text, gui_count[module])
             print(text)
 




Related Messages


Powered by MHonArc, Updated Tue Jul 10 14:40:01 2012