[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
Thu Mar 31 11:39:57 CDT 2011


branch "master" has been updated
       via  31faa31ac7dbc38e3c134ffe1e3ee21feaad080e (commit)
      from  5b052f87cdf9fa43f7b0e6482bfd470f2113350e (commit)

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


- Log -----------------------------------------------------------------
commit 31faa31ac7dbc38e3c134ffe1e3ee21feaad080e
Author: Darren Sessions <dsessions at digium.com>
Date:   Thu Mar 31 11:39:52 2011 -0500

    Fixed an issue with the exit code not being 0 on a successful run and an issue where the program parses the git master file to obtain a version when none exists (i.e. testsuite update).

diff --git a/bamboo/bin/tests.py b/bamboo/bin/tests.py
index 06d624c..327b118 100755
--- a/bamboo/bin/tests.py
+++ b/bamboo/bin/tests.py
@@ -226,8 +226,6 @@ def main(argv=None):
     
     print "\nRunning on %s %s\n" % (plat, arch)
 
-    crev = readinfile(".git/refs/heads/master").rstrip('\n')
-
     if plat == "Windows":
         make = '/PROGRA~1/MICROS~1.0/VC/bin/nmake.exe'
         mkcmd = "-F Makefile.mak "
@@ -253,10 +251,10 @@ def main(argv=None):
     elif args[1] == "update_build_env":
         update_build_env()        
     else:
+        crev = readinfile(".git/refs/heads/master").rstrip('\n')
         test_asterisk_scf(args[1])
 
     return 0
 
 if __name__ == "__main__":
-    sys.exit(main() or 1)
-
+    sys.exit(main() or 0)

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


-- 
asterisk-scf/release/testsuite.git



More information about the asterisk-scf-commits mailing list