diff options
author | Jose <jose@zeroc.com> | 2017-06-26 18:59:04 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2017-06-26 18:59:04 +0200 |
commit | 079b112f5bd5f300f8c5f5f1549f74600381719f (patch) | |
tree | d88a8ffb898ba6161565dbc9538ea9eb9d0b58bf /scripts/Util.py | |
parent | Move sign log to intermediate directory (diff) | |
download | ice-079b112f5bd5f300f8c5f5f1549f74600381719f.tar.bz2 ice-079b112f5bd5f300f8c5f5f1549f74600381719f.tar.xz ice-079b112f5bd5f300f8c5f5f1549f74600381719f.zip |
Fix (ICE-8150) - bogus test output is causing bogus test report
Diffstat (limited to 'scripts/Util.py')
-rw-r--r-- | scripts/Util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/Util.py b/scripts/Util.py index 72963bf6948..7d83362842d 100644 --- a/scripts/Util.py +++ b/scripts/Util.py @@ -1568,7 +1568,7 @@ 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); + output = self.getOutput(testcase) for s in ["EADDRINUSE", "Address already in use"]: if output.find(s) >= 0: if isinstance(platform, Windows): @@ -1598,7 +1598,7 @@ class Result: try: return self._stdout.read(end - start) finally: - self._stdout.seek(os.SEEK_END) + self._stdout.seek(0, os.SEEK_END) return self._stdout.getvalue() |