mailr21965 - /trunk/test_suite/relax_test_runner.py


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

Header


Content

Posted by edward on January 13, 2014 - 11:55:
Author: bugman
Date: Mon Jan 13 11:55:16 2014
New Revision: 21965

URL: http://svn.gna.org/viewcvs/relax?rev=21965&view=rev
Log:
Improvement for the relax test suite printout with the --time command line 
argument flag.

The tests printed out now have the package and module names removed, so that 
one the test name
remains.  This removes a large amount of text, simplifying the printout.


Modified:
    trunk/test_suite/relax_test_runner.py

Modified: trunk/test_suite/relax_test_runner.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/relax_test_runner.py?rev=21965&r1=21964&r2=21965&view=diff
==============================================================================
--- trunk/test_suite/relax_test_runner.py (original)
+++ trunk/test_suite/relax_test_runner.py Mon Jan 13 11:55:16 2014
@@ -163,6 +163,10 @@
         # Subtract the end time from the start time.
         self.time -= time()
 
+        # Change the test name.
+        test_name = test_name.split('.')
+        test_name = "%s.%s" % (test_name[-2], test_name[-1])
+
         # The printout.
         self.stream.write('  %7.2f s for %s.\n' % (-self.time, test_name))
 




Related Messages


Powered by MHonArc, Updated Mon Jan 13 13:40:01 2014