summaryrefslogtreecommitdiff
path: root/scripts/Expect.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2017-06-20 12:38:43 +0200
committerBenoit Foucher <benoit@zeroc.com>2017-06-20 12:38:43 +0200
commit89fcb61132c73afa2f808c54d6406f0073d8735a (patch)
tree498e3113020a668a51a0f782fe342db091713335 /scripts/Expect.py
parentPrint unexpected exceptions on C# Ice/dispatcher (diff)
downloadice-89fcb61132c73afa2f808c54d6406f0073d8735a.tar.bz2
ice-89fcb61132c73afa2f808c54d6406f0073d8735a.tar.xz
ice-89fcb61132c73afa2f808c54d6406f0073d8735a.zip
No longer kill tests on timeout
Diffstat (limited to 'scripts/Expect.py')
-rwxr-xr-xscripts/Expect.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/Expect.py b/scripts/Expect.py
index f33c4dfb1fb..a9d5c52144e 100755
--- a/scripts/Expect.py
+++ b/scripts/Expect.py
@@ -411,6 +411,9 @@ class Expect (object):
if startReader:
self.startReader()
+ def __str__(self):
+ return "{0} pid={1}".format(self.desc, "<none>" if self.p is None else self.p.pid)
+
def startReader(self, watchDog = None):
if watchDog is not None:
self.r.setWatchDog(watchDog)
@@ -618,7 +621,7 @@ class Expect (object):
test(self.exitstatus, exitstatus)
def getOutput(self):
- return self.buf
+ return self.buf if self.p is None else self.r.getbuf()
def hasInterruptSupport(self):
"""Return True if the application gracefully terminated, False otherwise."""