summaryrefslogtreecommitdiff
path: root/scripts/Util.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2017-06-22 11:53:49 +0200
committerBenoit Foucher <benoit@zeroc.com>2017-06-22 11:53:49 +0200
commit9695bb3cde41d45efffb91afae86368537b35386 (patch)
treeace60704764008b41fa9cc8e60454bbf43e7d560 /scripts/Util.py
parentFix for ICE-8136 - travis php Ice/timeout failure (diff)
downloadice-9695bb3cde41d45efffb91afae86368537b35386.tar.bz2
ice-9695bb3cde41d45efffb91afae86368537b35386.tar.xz
ice-9695bb3cde41d45efffb91afae86368537b35386.zip
Added diagnostics to track down address already in use failures
Diffstat (limited to 'scripts/Util.py')
-rw-r--r--scripts/Util.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/Util.py b/scripts/Util.py
index a08fa9f8903..8a247b7983e 100644
--- a/scripts/Util.py
+++ b/scripts/Util.py
@@ -1568,6 +1568,14 @@ class Result:
self.writeln("\ntest in {0} failed:\n{1}".format(self.testsuite, exception))
self._testcases[testcase] = (self._start, self._stdout.tell())
self._failed[testcase] = exception
+ output = self.getOutput(testcase);
+ for s in ["EADDRINUSE", "Address already in use"]:
+ if output.find(s) >= 0:
+ if isinstance(platform, Windows):
+ self.writeln(run("netstat -on"))
+ self.writeln(run("powershell.exe \"Get-Process | Select id,name,path\""))
+ else:
+ self.writeln(run("lsof -n -P -i; ps ax"))
def succeeded(self, testcase):
self._testcases[testcase] = (self._start, self._stdout.tell())