[asterisk-commits] mjordan: testsuite/asterisk/trunk r3722 - /asterisk/trunk/lib/python/asterisk/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Apr 20 10:48:16 CDT 2013


Author: mjordan
Date: Sat Apr 20 10:48:12 2013
New Revision: 3722

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3722
Log:
Add some debug to the BridgeTestCase class

The bridge/dial_ls_option test is failing due to not getting all
hangups it thought it should get, despite the Asterisk instances
raising them. Add some debug to see what hangups we're passing on.

Modified:
    asterisk/trunk/lib/python/asterisk/BridgeTestCase.py

Modified: asterisk/trunk/lib/python/asterisk/BridgeTestCase.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/lib/python/asterisk/BridgeTestCase.py?view=diff&rev=3722&r1=3721&r2=3722
==============================================================================
--- asterisk/trunk/lib/python/asterisk/BridgeTestCase.py (original)
+++ asterisk/trunk/lib/python/asterisk/BridgeTestCase.py Sat Apr 20 10:48:12 2013
@@ -200,9 +200,10 @@
             elif event.get('channel') == self.uut_bob_channel:
                 LOGGER.info("UUT Bob hang up")
                 self.uut_bob_hungup = True
-
-        if (self.bob_hungup and self.alice_hungup and self.uut_alice_hungup and
-                self.uut_bob_hungup):
+        else:
+            LOGGER.debug('Passing on Hangup for %s' % event['channel'])
+
+        if (self.bob_hungup and self.alice_hungup and self.uut_alice_hungup and self.uut_bob_hungup):
             for callback in self.call_end_observers:
                 callback(self.ami_uut, self.ami_alice, self.ami_alice)
             # Test call has concluded move on!




More information about the asterisk-commits mailing list