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

Matt Jordan asteriskteam at digium.com
Tue Jul 14 19:11:25 CDT 2015


Matt Jordan has submitted this change and it was merged.

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(-)

Approvals:
  Mark Michelson: Looks good to me, but someone else must approve
  Matt Jordan: Looks good to me, approved; Verified



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: merged
Gerrit-Change-Id: Ifd98d8408d73d7dee4564add9a932fe43238c3cc
Gerrit-PatchSet: 1
Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-Owner: Scott Griepentrog <sgriepentrog at digium.com>
Gerrit-Reviewer: Mark Michelson <mmichelson at digium.com>
Gerrit-Reviewer: Matt Jordan <mjordan at digium.com>



More information about the asterisk-code-review mailing list