[asterisk-commits] russell: testsuite/asterisk/trunk r581 - /asterisk/trunk/tests/blind-transfer...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Jul 24 17:26:23 CDT 2010


Author: russell
Date: Sat Jul 24 17:26:19 2010
New Revision: 581

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=581
Log:
Only stop the reactor and Asterisk once.

Modified:
    asterisk/trunk/tests/blind-transfer-parkingtimeout/run-test

Modified: asterisk/trunk/tests/blind-transfer-parkingtimeout/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/blind-transfer-parkingtimeout/run-test?view=diff&rev=581&r1=580&r2=581
==============================================================================
--- asterisk/trunk/tests/blind-transfer-parkingtimeout/run-test (original)
+++ asterisk/trunk/tests/blind-transfer-parkingtimeout/run-test Sat Jul 24 17:26:19 2010
@@ -22,6 +22,7 @@
 class BlindTransferTest:
     def __init__(self, argv):
         self.passed = False
+        self.done = False
 
         # Test timeout in seconds
         self.timeout = 60
@@ -59,14 +60,15 @@
         self.read_result();
 
     def read_result(self):
+        if self.done:
+            return
+        self.done = True
         self.log_last_step("Reading results")
         self.asterisk1.cli_exec("core show locks")   # get lock output in case of deadlock before tearing down.
         self.asterisk2.cli_exec("core show locks")   # get lock output in case of deadlock before tearing down.
 
         self.asterisk1.cli_exec("core show channels")# if channels are still up for some reason, we want to know that as well
         self.asterisk2.cli_exec("core show channels")# if channels are still up for some reason, we want to know that as well
-
-        self.stop_asterisk()
 
         if (self.passed):
             self.log_last_step("Test Passed...")
@@ -130,3 +132,4 @@
 if __name__ == "__main__":
     sys.exit(main() or 0)
 
+# vim:sw=4:ts=4:expandtab:textwidth=79




More information about the asterisk-commits mailing list