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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 25 17:09:51 CST 2012


Author: mjordan
Date: Wed Jan 25 17:09:48 2012
New Revision: 3012

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3012
Log:
Change passed to use member variable "passed"

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

Modified: asterisk/trunk/lib/python/asterisk/sipp.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/lib/python/asterisk/sipp.py?view=diff&rev=3012&r1=3011&r2=3012
==============================================================================
--- asterisk/trunk/lib/python/asterisk/sipp.py (original)
+++ asterisk/trunk/lib/python/asterisk/sipp.py Wed Jan 25 17:09:48 2012
@@ -203,7 +203,7 @@
             default_port = 5060 + len(self.sipp) + 1
             self.sipp.append(self.__run_sipp(s, str(default_port)))
 
-        passed = True
+        self.passed = True
         for i in range(len(self.sipp)):
             (out, err) = self.sipp[i].communicate()
             self.stdout.append(out)
@@ -213,13 +213,13 @@
             if self.result[i]:
                 logger.warn("SIPp scenario #%d (%s) FAILED" % (i, self.scenarios[i]['scenario']))
                 logger.warn(self.stderr[i])
-                passed = False
+                self.passed = False
             else:
                 logger.info("SIPp scenario #%d (%s) PASSED" % (i,  self.scenarios[i]['scenario']))
 
         self.stop_asterisk()
         self.stop_reactor()
-        if passed:
+        if self.passed:
             return 0
         else:
             return 1




More information about the asterisk-commits mailing list