[asterisk-scf-commits] asterisk-scf/integration/testsuite.git branch "review" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Wed Jun 8 14:01:44 CDT 2011


branch "review" has been updated
       via  53243344b0757fd555098b073c3653c238ff9255 (commit)
      from  e8bc356207f07ed5ce93e93f8f2d835091aa18f2 (commit)

Summary of changes:
 testsuite.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)


- Log -----------------------------------------------------------------
commit 53243344b0757fd555098b073c3653c238ff9255
Author: Darren Sessions <dsessions at digium.com>
Date:   Wed Jun 8 14:01:42 2011 -0500

    Modified the testsuite xml output to check if the bamboo build url had previously been generated and include the bamboo artifact url in the xml output if it had been to make things easy to find.

diff --git a/testsuite.py b/testsuite.py
index 65ffb30..39a96d9 100755
--- a/testsuite.py
+++ b/testsuite.py
@@ -134,7 +134,10 @@ class __main__:
 
                                 if runResults['success'] == False:
                                     print >> sys.stderr, '   |- Test "' + testName + '" - FAILED!\n    \- ' + runResults['msg']
-                                    subTestElement, errorMsgs = xml().addFailure(subTestElement, ['%s\n%s%s' % (runResults['msg'], self.globalVars['bambooBuildURL'], self.globalVars['testInfo']['testPath'])])
+                                    xmlFailureMsg = '%s' % runResults['msg']
+                                    if 'bambooBuildURL' in self.globalVars:
+                                        xmlFailureMsg = '%s\nIf artifacts were generated, they can be found at the link below.\n\n%s%s' % (runResults['msg'], self.globalVars['bambooBuildURL'], self.globalVars['testInfo']['testPath'])
+                                    subTestElement, errorMsgs = xml().addFailure(subTestElement, [xmlFailureMsg])
                                     if 'stop_tests_on_failure' in self.globalVars['testInfo']['testOpts']:
                                         if self.globalVars['testInfo']['testOpts']['stop_tests_on_failure'] == True:
                                             stopTests = True

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/testsuite.git



More information about the asterisk-scf-commits mailing list