[asterisk-commits] russell: testsuite/asterisk/trunk r115 - /asterisk/trunk/runtests.py

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 23 16:56:20 CDT 2010


Author: russell
Date: Tue Mar 23 16:56:17 2010
New Revision: 115

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=115
Log:
Put test output for a failed test in a CDATA section in the XML output.

Modified:
    asterisk/trunk/runtests.py

Modified: asterisk/trunk/runtests.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/runtests.py?view=diff&rev=115&r1=114&r2=115
==============================================================================
--- asterisk/trunk/runtests.py (original)
+++ asterisk/trunk/runtests.py Tue Mar 23 16:56:17 2010
@@ -219,7 +219,7 @@
             if t.passed is True:
                 f.write('/>\n')
                 continue
-            f.write('>\t\t<failure>%s</failure>\n\t</testcase>' % t.stdout)
+            f.write('>\t\t<failure><![CDATA[\n%s\n\t\t]]></failure>\n\t</testcase>' % t.stdout)
         f.write('</testsuite>\n')
         f.close()
 




More information about the asterisk-commits mailing list