[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 1 20:59:59 CDT 2011


branch "review" has been updated
       via  882a52699092734f71e010c4dc5f1382bd2c03b6 (commit)
      from  2f1e8e965ef0d6b171abb4d6a8c2d8936d6ac6c6 (commit)

Summary of changes:
 lib/python/TestSuite.py |   10 +++-------
 testsuite.py            |    4 ++--
 2 files changed, 5 insertions(+), 9 deletions(-)


- Log -----------------------------------------------------------------
commit 882a52699092734f71e010c4dc5f1382bd2c03b6
Author: Darren Sessions <dsessions at digium.com>
Date:   Wed Jun 1 20:59:56 2011 -0500

    more debugging bamboo integration

diff --git a/lib/python/TestSuite.py b/lib/python/TestSuite.py
index b068b98..a4e60f0 100644
--- a/lib/python/TestSuite.py
+++ b/lib/python/TestSuite.py
@@ -22,9 +22,9 @@ class utils():
     def ping(self, host):
         process = subprocess.Popen(
                 'ping -c1 %s' % host,
-                stdin=subprocess.PIPE,
-                stdout=subprocess.PIPE,
-                stderr=subprocess.PIPE,
+                #stdin=subprocess.PIPE,
+                #stdout=subprocess.PIPE,
+                #stderr=subprocess.PIPE,
                 shell=True)
         process.wait()
         if process.returncode == 0:
@@ -33,15 +33,11 @@ class utils():
             return False
 
     def installFromRemote(self, cwd, fn, fd, installPath):
-        print >> sys.stderr, 'Im here 1'
         try:
-            print >> sys.stderr, 'Im here 2'
             w = open('%s/tmp/%s' % (cwd, fn), "wb")
         except IOError:
-            print >> sys.stderr, 'Im here 3'
             return {'success':False,'msg':'Failed to open temp file: %s' % fn}
         except:
-            print >> sys.stderr, 'Im here 4'
             return {'success':False,'msg':'Unexpected error: %s' % sys.exc_info()[0]}
         w.write(fd.data)
         w.close()
diff --git a/testsuite.py b/testsuite.py
index 54f02d8..0e58ca3 100755
--- a/testsuite.py
+++ b/testsuite.py
@@ -236,11 +236,11 @@ class cleanup:
 
 def sigHandler(signum, frame):
     if signum in [1,2,3,15]:
-        print  >> sys.stderr, 'Caught signal %s, exiting.' %(str(signum))
+        print >> sys.stderr, 'Caught signal %s, exiting.' %(str(signum))
         cleanup()
         sys.exit()
     else:
-        print  >> sys.stderr, 'Caught signal %s, ignoring.' %(str(signum))
+        print >> sys.stdout, 'Caught a signal %s while running and ignored it.' %(str(signum))
 
 def sigSetup():
     uncatchable = ['SIG_DFL','SIGSTOP','SIGKILL']

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


-- 
asterisk-scf/integration/testsuite.git



More information about the asterisk-scf-commits mailing list