summaryrefslogtreecommitdiff
path: root/scripts/Util.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2017-07-13 15:14:39 +0200
committerBenoit Foucher <benoit@zeroc.com>2017-07-13 15:14:39 +0200
commit2178cc1d451e649356026ef375629ef5caca55d4 (patch)
tree06147e6a2892267ee133402a0579ff14d008950c /scripts/Util.py
parentUpdate UWP test projects to use additional options (diff)
downloadice-2178cc1d451e649356026ef375629ef5caca55d4.tar.bz2
ice-2178cc1d451e649356026ef375629ef5caca55d4.tar.xz
ice-2178cc1d451e649356026ef375629ef5caca55d4.zip
Fix for ICE-8309 - check for spurious selector wakeups
Diffstat (limited to 'scripts/Util.py')
-rw-r--r--scripts/Util.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/Util.py b/scripts/Util.py
index 636c4a60a48..e2137a8116b 100644
--- a/scripts/Util.py
+++ b/scripts/Util.py
@@ -1147,8 +1147,8 @@ class Process(Runnable):
current.write(self.getOutput(current), stdout=False)
def teardown(self, current, success):
- assert self in current.processes
- current.processes[self].teardown(current, success)
+ if self in current.processes:
+ current.processes[self].teardown(current, success)
def expect(self, current, pattern, timeout=60):
assert(self in current.processes and isinstance(current.processes[self], Expect.Expect))
@@ -1774,7 +1774,7 @@ class LocalProcessController(ProcessController):
def teardown(self, current, success):
if self.traceFile:
- if success:
+ if success or current.driver.isInterrupted():
os.remove(self.traceFile)
else:
current.writeln("saved {0}".format(self.traceFile))