[asterisk-scf-commits] asterisk-scf/release/testsuite.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue May 10 16:02:50 CDT 2011


branch "master" has been updated
       via  baf57af2d52bbeb10b8bc58469e6f4b2131f4db0 (commit)
      from  a09a2976d1850e3aabd80d9d77d6d13fc86610a9 (commit)

Summary of changes:
 bamboo/bin/tests.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit baf57af2d52bbeb10b8bc58469e6f4b2131f4db0
Author: Darren Sessions <dsessions at digium.com>
Date:   Tue May 10 16:02:44 2011 -0500

    Modified the unit tests to look in the test_result directory for boost xml result files.

diff --git a/bamboo/bin/tests.py b/bamboo/bin/tests.py
index a558034..f0124f6 100644
--- a/bamboo/bin/tests.py
+++ b/bamboo/bin/tests.py
@@ -36,13 +36,13 @@ class test_asterisk_scf:
             self.__convert_boost_to_junit()
 
     def __convert_boost_to_junit(self):
-        os.chdir("..")
+        os.chdir("../test_results")
         tree = os.walk(".")
         for root, dirs, files in tree:
             if len(files)>0:
                 for f in files:
                     if re.match(r"^(?!converted).*result.xml", f):
-                        os.system("%s /opt/bamboo/boost_to_junit.xsl %s >> converted_%s" % (which("xsltproc"), f, f))
+                        os.system("%s /opt/bamboo/boost_to_junit.xsl %s >> ../converted_%s" % (which("xsltproc"), f, f))
                         os.remove(f)
 
     def __unit_tests(self, component):

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


-- 
asterisk-scf/release/testsuite.git



More information about the asterisk-scf-commits mailing list