[asterisk-dev] [Code Review] 4145: testsuite: update pretty_print script for recent runtests.py changes.

George Joseph reviewboard at asterisk.org
Sat Nov 15 16:36:57 CST 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4145/
-----------------------------------------------------------

(Updated Nov. 15, 2014, 3:36 p.m.)


Review request for Asterisk Developers.


Changes
-------

runtests.py:
Changed to re-open stdout in single line buffered mode.
Changed to print total number of tests that will be run before actually running any tests.  This allows_pretty print to tell you where in the test run you are.
Changed to add a '--timeout n' parameter.  If a test fails to output anything within n seconds, the test is aborted.  The default is inf so without the parameter the behavior is the same as today.  The status printed will be 'timedout' instead of 'passed' or 'failed'.

pretty-print:
Changed back to filter.   Run with ./runtests.py <options> | contrib/scripts/pretty_print
Added time current test has been running.
Added total run time to final summary.
Added 'timedout' to the possible statuses.


Repository: testsuite


Description
-------

Updated contrib/scripts/pretty_print so it works with recent runtests.py changes.  Also changed it from a filter to a standalone script.


Diffs (updated)
-----

  asterisk/trunk/runtests.py 5927 
  asterisk/trunk/contrib/scripts/pretty_print 5927 

Diff: https://reviewboard.asterisk.org/r/4145/diff/


Testing
-------


Thanks,

George Joseph

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20141115/6d29fa28/attachment.html>


More information about the asterisk-dev mailing list