[svn-commits] mnicholson: testsuite/asterisk/trunk r2762 - /asterisk/trunk/runtests.py
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Nov 15 14:55:39 CST 2011
Author: mnicholson
Date: Tue Nov 15 14:55:35 2011
New Revision: 2762
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=2762
Log:
use subprocess.call with shell=True instead of subprocess.Popen to execute gdb
Modified:
asterisk/trunk/runtests.py
Modified: asterisk/trunk/runtests.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/runtests.py?view=diff&rev=2762&r1=2761&r2=2762
==============================================================================
--- asterisk/trunk/runtests.py (original)
+++ asterisk/trunk/runtests.py Tue Nov 15 14:55:35 2011
@@ -80,8 +80,9 @@
cmd = 'gdb -se "asterisk" -ex "bt full" -ex "thread apply all bt" --batch -c core > ./backtrace.txt'
print "Running %s" % cmd
try:
- btp = subprocess.Popen(cmd)
- btp.wait()
+ res = subprocess.call(cmd, shell = True)
+ if res != 0:
+ print "error analyzing core dump; gdb exited with %d" (res)
""" Copy the backtrace over to the logs """
dest_dir = "./logs/%s" % self.test_name.lstrip("tests/")
except OSError, ose:
More information about the svn-commits
mailing list