[asterisk-commits] russell: testsuite/asterisk/trunk r1075 - /asterisk/trunk/lib/python/asterisk/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 6 10:48:02 CST 2010


Author: russell
Date: Mon Dec  6 10:47:57 2010
New Revision: 1075

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=1075
Log:
Tweak syntax to be compatible with ancient Python  :-(

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=1075&r1=1074&r2=1075
==============================================================================
--- asterisk/trunk/lib/python/asterisk/sipp.py (original)
+++ asterisk/trunk/lib/python/asterisk/sipp.py Mon Dec  6 10:47:57 2010
@@ -113,8 +113,10 @@
             self.stdout.append(out)
             self.stderr.append(err)
             self.result.append(self.sipp[i].wait())
-            print "SIPp scenario #%d %s" % (i, "FAILED" if self.result[i] else
-                                               "Passed")
+            if self.result[i]:
+                print "SIPp scenario #%d FAILED"
+            else:
+                print "SIPp scenario #%d PASSED"
             if self.result[i]:
                 passed = False
                 #print self.stdout[i]
@@ -122,5 +124,8 @@
 
         self.ast1.stop()
 
-        return 0 if passed else 1
+        if passed:
+            return 0
+        else:
+            return 1
 




More information about the asterisk-commits mailing list