[asterisk-commits] kmoore: testsuite/asterisk/trunk r3432 - in /asterisk/trunk/tests/channels/SI...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Aug 14 09:17:08 CDT 2012


Author: kmoore
Date: Tue Aug 14 09:17:04 2012
New Revision: 3432

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3432
Log:
Don't generate warnings unnecessarily

This prevents warnings from being logged when the detected event is
expected and is a normal part of the functioning of the test.

Modified:
    asterisk/trunk/tests/channels/SIP/sip_blind_transfer/callee_refer_only/run-test
    asterisk/trunk/tests/channels/SIP/sip_blind_transfer/caller_refer_only/run-test

Modified: asterisk/trunk/tests/channels/SIP/sip_blind_transfer/callee_refer_only/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/sip_blind_transfer/callee_refer_only/run-test?view=diff&rev=3432&r1=3431&r2=3432
==============================================================================
--- asterisk/trunk/tests/channels/SIP/sip_blind_transfer/callee_refer_only/run-test (original)
+++ asterisk/trunk/tests/channels/SIP/sip_blind_transfer/callee_refer_only/run-test Tue Aug 14 09:17:04 2012
@@ -75,7 +75,7 @@
                 self.ami_check_bridge()
             else:
                 logger.warning("Unexpected bridge (%s and %s) received!" % (channel1, channel2))
-        else:
+        elif bridgetype != 'core' or bridgestate != 'unlink':
             logger.warning("Unexpected bridgetype %s or bridgestate %s received!" % (bridgetype, bridgestate))
 
     def transfer_event_handler(self, ami, event):

Modified: asterisk/trunk/tests/channels/SIP/sip_blind_transfer/caller_refer_only/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/sip_blind_transfer/caller_refer_only/run-test?view=diff&rev=3432&r1=3431&r2=3432
==============================================================================
--- asterisk/trunk/tests/channels/SIP/sip_blind_transfer/caller_refer_only/run-test (original)
+++ asterisk/trunk/tests/channels/SIP/sip_blind_transfer/caller_refer_only/run-test Tue Aug 14 09:17:04 2012
@@ -76,7 +76,7 @@
                 self.ami_check_bridge()
             else:
                 logger.warning("Unexpected bridge (%s and %s) received!" % (channel1, channel2))
-        else:
+        elif bridgetype != 'core' or bridgestate != 'unlink':
             logger.warning("Unexpected bridgetype %s or bridgestate %s received!" % (bridgetype, bridgestate))
 
     def transfer_event_handler(self, ami, event):




More information about the asterisk-commits mailing list