Author: mjordan Date: Sat Feb 14 21:48:53 2015 New Revision: 6433 URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=6433 Log: tests/cdr/cdr-tests: Improve ERROR message for ForkCDR tests
When ForkCDR tests fail, they don't currently spit out the durations of the CDR entries. This improves the ERROR message to provide that information. Modified: asterisk/trunk/tests/cdr/cdr-tests.py Modified: asterisk/trunk/tests/cdr/cdr-tests.py URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cdr/cdr-tests.py?view=diff&rev=6433&r1=6432&r2=6433 ============================================================================== --- asterisk/trunk/tests/cdr/cdr-tests.py (original) +++ asterisk/trunk/tests/cdr/cdr-tests.py Sat Feb 14 21:48:53 2015 @@ -88,8 +88,11 @@ (self.test_object.ast[0].base, self.test_object.ast[0].directories['astlogdir'], "cdrtest_local")) - if int(cdr1[0].duration) < int(cdr1[1].duration): - LOGGER.error("Fail: Original CDR duration shorter than forked") + original = int(cdr1[0].duration) + forked = int(cdr1[1].duration) + if original < forked: + LOGGER.error("Fail: Original CDR duration '%d' shorter than " + "forked '%d'" % (original, forked)) self.test_object.set_passed(False) return -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- svn-commits mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/svn-commits