summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-02-27 16:25:22 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-02-27 23:31:13 +0000
commit08750abc64a7ad82cac96adeb7a0bcdce7ac704d (patch)
treed8893743c13c3d7def437b085a1db265ddda5620 /uitest
parent70f89e6b9f89177fc60f9cc9b55a87fdc5c6017f (diff)
uitest: catch more exceptions during shutdown
Change-Id: Ie4bfc28c32b4b21c75ca92b95521c03a0683db32 Reviewed-on: https://gerrit.libreoffice.org/34692 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'uitest')
-rw-r--r--uitest/uitest/framework.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/uitest/uitest/framework.py b/uitest/uitest/framework.py
index f21d72bd9b12..7149132c3508 100644
--- a/uitest/uitest/framework.py
+++ b/uitest/uitest/framework.py
@@ -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: