[Asterisk-code-review] Testsuite: improve diagnostic of yaml error (testsuite[master])

Scott Griepentrog asteriskteam at digium.com
Tue Jul 14 16:24:17 CDT 2015


Scott Griepentrog has uploaded a new change for review.

  https://gerrit.asterisk.org/888

Change subject: Testsuite: improve diagnostic of yaml error
......................................................................

Testsuite: improve diagnostic of yaml error

When an IO Error occurs, go ahead and dump the
backtrace so that the failed path is visible.

Change-Id: Ifd98d8408d73d7dee4564add9a932fe43238c3cc
---
M lib/python/asterisk/test_config.py
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/88/888/1

diff --git a/lib/python/asterisk/test_config.py b/lib/python/asterisk/test_config.py
index 2057c1b..3338833 100644
--- a/lib/python/asterisk/test_config.py
+++ b/lib/python/asterisk/test_config.py
@@ -277,6 +277,7 @@
             self.can_run = False
         except:
             print("Exception occurred while parsing config:", sys.exc_info()[0])
+            print(traceback.format_exc())
             self.can_run = False
 
     def _process_global_settings(self):

-- 
To view, visit https://gerrit.asterisk.org/888
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifd98d8408d73d7dee4564add9a932fe43238c3cc
Gerrit-PatchSet: 1
Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-Owner: Scott Griepentrog <sgriepentrog at digium.com>



More information about the asterisk-code-review mailing list