diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-09-25 17:31:18 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-10-02 20:05:23 +0200 |
commit | 0fd2e787974853b48c54ed7a165ee7edda80af64 (patch) | |
tree | 8dca03b68665b1e304318f80ce1cdbf5925ed6ea /uitest | |
parent | 9fc7fb0e78334b926347d85480ad9df00cc1ed1e (diff) |
solenv: support gb_UITest_DEBUGRUN for ui tests
This is similar to gb_JunitTest_DEBUGRUN, i.e. allows running soffice in
gdb, and then connecting to that soffice from the test, instead of
starting an own one.
Change-Id: I023d6b0ede146837666c946cb865feb9046e5a94
Reviewed-on: https://gerrit.libreoffice.org/42756
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/libreoffice/connection.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uitest/libreoffice/connection.py b/uitest/libreoffice/connection.py index cc1e6acd2b0f..50fdda33fd34 100644 --- a/uitest/libreoffice/connection.py +++ b/uitest/libreoffice/connection.py @@ -94,7 +94,7 @@ class OfficeConnection: url = "uno:" + socket + ";urp;StarOffice.ComponentContext" print("OfficeConnection: connecting to: " + url) while True: - if self.soffice.poll() is not None: + if self.soffice and self.soffice.poll() is not None: raise Exception("soffice has stopped.") try: |