Changeset: 771a6fc3aee7 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=771a6fc3aee7
Modified Files:
testing/Mtest.py.in
Branch: Jul2012
Log Message:
Move HACK from changeset 3725397c305e to a new location.
diffs (27 lines):
diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -2266,10 +2266,6 @@ 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) #
@@ -2793,7 +2789,11 @@ def Check(command, input) :
STDERR.write("\n")
STDERR.flush()
#sys.exit(1)
- return 1
+ if sys.platform == 'linux2':
+ proc = subprocess.Popen(['netstat', '-ap'], stdout =
subprocess.PIPE, stderr = subprocess.PIPE, universal_newlines = True)
+ out, err = proc.communicate()
+ STDERR.write(err)
+ STDOUT.write(out)
if noErr:
STDOUT.flush()
STDERR.writelines(noErr)
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list