Changeset: 3725397c305e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3725397c305e
Modified Files:
        testing/Mtest.py.in
Branch: Jul2012
Log Message:

HACK: if we can't find a workable port, call netstat for debugging purposes.
This hack will be removed later on.


diffs (25 lines):

diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -2254,8 +2254,10 @@ def randomPort(l,h) :
     repeat = randomPortRepeat
     port = 0
     rpt = 0
+    ports = []
     while rpt < repeat:
         port = random.randrange(l,h,1)
+        ports.append(port)
         busy, host, Serrno, Serrstr, S = CheckPort(port)
         S[0].close()
         S[1].close()
@@ -2264,6 +2266,10 @@ def randomPort(l,h) :
             port = 0
         else:
             break
+    else:
+        if sys.platform == 'linux2':
+            print 'Ports tried:',`ports`
+            os.system('netstat -ap')
     return (port,host)
 ### randomPort(l,h) #
 
_______________________________________________
Checkin-list mailing list
Checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to