[asterisk-commits] mmichelson: testsuite/asterisk/trunk r561 - /asterisk/trunk/runtests.py

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 23 16:56:30 CDT 2010


Author: mmichelson
Date: Fri Jul 23 16:56:26 2010
New Revision: 561

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=561
Log:
Testsuite must run on Python 2.5, and subprocess.check_output is new in 2.7.


Modified:
    asterisk/trunk/runtests.py

Modified: asterisk/trunk/runtests.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/runtests.py?view=diff&rev=561&r1=560&r2=561
==============================================================================
--- asterisk/trunk/runtests.py (original)
+++ asterisk/trunk/runtests.py Fri Jul 23 16:56:26 2010
@@ -98,7 +98,7 @@
         if self.__which('pjsua') is None:
             return False
 
-        help_output = subprocess.check_output(['pjsua', '--help'])
+        help_output = subprocess.POPEN(['pjsua', '--help'],stdout=PIPE).communicate()
         if help_output.find('--ipv6') == -1:
             return False
         return True




More information about the asterisk-commits mailing list