summaryrefslogtreecommitdiff
path: root/uitest/libreoffice
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-12-14 07:14:35 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-12-19 18:50:43 +0000
commit756203d490720deb53f7da4914d738b064b9e157 (patch)
tree40902830445cae983269158f5cf5b2b2d7740abc /uitest/libreoffice
parentef16c96a51809f97d66e7e22595388e54e974cf1 (diff)
make sure we are not leaving soffice around if python process crashes
Change-Id: Idac32c3d788714533ee760782d2b6a328262f3f8 Reviewed-on: https://gerrit.libreoffice.org/31996 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'uitest/libreoffice')
-rw-r--r--uitest/libreoffice/connection.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/uitest/libreoffice/connection.py b/uitest/libreoffice/connection.py
index 1b0150bb6f79..c717632b3b23 100644
--- a/uitest/libreoffice/connection.py
+++ b/uitest/libreoffice/connection.py
@@ -161,5 +161,8 @@ class PersistentConnection:
self.connection.tearDown()
finally:
self.connection = None
+ def kill(self):
+ if self.connection and self.connection.soffice:
+ self.connection.soffice.kill()
# vim: set shiftwidth=4 softtabstop=4 expandtab: