[asterisk-commits] russell: testsuite/asterisk/trunk r577 - in /asterisk/trunk: ./ lib/python/as...

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


Author: russell
Date: Sat Jul 24 17:11:22 2010
New Revision: 577

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=577
Log:
redirect stderr to stdout

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

Modified: asterisk/trunk/lib/python/asterisk/asterisk.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/lib/python/asterisk/asterisk.py?view=diff&rev=577&r1=576&r2=577
==============================================================================
--- asterisk/trunk/lib/python/asterisk/asterisk.py (original)
+++ asterisk/trunk/lib/python/asterisk/asterisk.py Sat Jul 24 17:11:22 2010
@@ -182,7 +182,8 @@
             process = subprocess.Popen(cmd)
             return ""
 
-        process = subprocess.Popen(cmd, stdout=subprocess.PIPE)
+        process = subprocess.Popen(cmd, stdout=subprocess.PIPE,
+                                   stderr=subprocess.STDOUT)
         output = ""
         try:
             for l in process.stdout.readlines():

Modified: asterisk/trunk/runtests.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/runtests.py?view=diff&rev=577&r1=576&r2=577
==============================================================================
--- asterisk/trunk/runtests.py (original)
+++ asterisk/trunk/runtests.py Sat Jul 24 17:11:22 2010
@@ -146,7 +146,8 @@
             except IOError:
                 print "FAILURE: Failed to open file for test output"
                 return
-            p = subprocess.Popen(cmd, stdout=subprocess.PIPE)
+            p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
+                                 stderr=subprocess.STDOUT)
             try:
                 for l in p.stdout.readlines():
                     f.write(l)




More information about the asterisk-commits mailing list