[svn-commits] mjordan: testsuite/asterisk/trunk r2605 - in /asterisk/trunk: ./ tests/apps/i...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Oct 13 15:02:13 CDT 2011


Author: mjordan
Date: Thu Oct 13 15:02:10 2011
New Revision: 2605

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=2605
Log:
Added handling in case gdb isn't installed.  Accepted thread failures
for sip_incomplete and handle_response_incomplete

Modified:
    asterisk/trunk/runtests.py
    asterisk/trunk/tests/apps/incomplete/sip_incomplete/test-config.yaml
    asterisk/trunk/tests/channels/SIP/handle_response_address_incomplete/test-config.yaml

Modified: asterisk/trunk/runtests.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/runtests.py?view=diff&rev=2605&r1=2604&r2=2605
==============================================================================
--- asterisk/trunk/runtests.py (original)
+++ asterisk/trunk/runtests.py Thu Oct 13 15:02:10 2011
@@ -79,10 +79,18 @@
             print "Core dump detected; an Asterisk instance must have crashed"
             cmd = 'gdb -se "asterisk" -ex "bt full" -ex "thread apply all bt" --batch -c core > ./backtrace.txt'
             print "Running %s" % cmd
-            btp = subprocess.Popen(cmd)
-            btp.wait()
-            """ Copy the backtrace over to the logs """
-            dest_dir = "./logs/%s" % self.test_name.lstrip("tests/")
+            try:
+                btp = subprocess.Popen(cmd)
+                btp.wait()
+                """ Copy the backtrace over to the logs """
+                dest_dir = "./logs/%s" % self.test_name.lstrip("tests/")
+            except OSError, ose:
+                print "OSError ([%d]: %s) occurred while executing %s" % (ose.errno, ose.strerror, cmd)
+                return
+            except:
+                print "Unknown exception occurred while executing %s" % cmd
+                return
+
             if not os.path.exists(des_dir):
                 try:
                     os.makedirs(dest_dir)

Modified: asterisk/trunk/tests/apps/incomplete/sip_incomplete/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/incomplete/sip_incomplete/test-config.yaml?view=diff&rev=2605&r1=2604&r2=2605
==============================================================================
--- asterisk/trunk/tests/apps/incomplete/sip_incomplete/test-config.yaml (original)
+++ asterisk/trunk/tests/apps/incomplete/sip_incomplete/test-config.yaml Thu Oct 13 15:02:10 2011
@@ -14,3 +14,7 @@
     dependencies:
         - sipp :
             version : 'v3.0'
+    testconditions:
+        - name: 'threads'
+          # We expect this to fail per ASTERISK-18713
+          expectedResult: 'Fail'

Modified: asterisk/trunk/tests/channels/SIP/handle_response_address_incomplete/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/handle_response_address_incomplete/test-config.yaml?view=diff&rev=2605&r1=2604&r2=2605
==============================================================================
--- asterisk/trunk/tests/channels/SIP/handle_response_address_incomplete/test-config.yaml (original)
+++ asterisk/trunk/tests/channels/SIP/handle_response_address_incomplete/test-config.yaml Thu Oct 13 15:02:10 2011
@@ -14,3 +14,7 @@
         - name: 'sip-dialogs'
           # SIP dialog will never be disposed of in this test
           expectedResult: 'Fail'
+    testconditions:
+        - name: 'threads'
+          # We expect this to fail per ASTERISK-18713
+          expectedResult: 'Fail'




More information about the svn-commits mailing list