Kaydet (Commit) 08750abc authored tarafından Markus Mohrhard's avatar Markus Mohrhard

uitest: catch more exceptions during shutdown

Change-Id: Ie4bfc28c32b4b21c75ca92b95521c03a0683db32
Reviewed-on: https://gerrit.libreoffice.org/34692Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 70f89e6b
......@@ -35,13 +35,13 @@ class UITestCase(unittest.TestCase):
t = time.time() - self.startTime
print("Execution time for %s: %.3f" % (self.id(), t))
if self.xContext is not None:
desktop = self.ui_test.get_desktop()
components = desktop.getComponents()
for component in components:
try:
component.close(False)
except Exception as e:
print(e)
try:
desktop = self.ui_test.get_desktop()
components = desktop.getComponents()
for component in components:
component.close(False)
except Exception as e:
print(e)
self.connection.tearDown()
finally:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment