[Libreoffice-commits] core.git: solenv/gbuild sw/qa
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Mon Mar 16 18:10:02 UTC 2020
solenv/gbuild/UITest.mk | 1 +
sw/qa/uitest/findReplace/findReplace.py | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 8ea5a522f76dd089446e901f3cd324f98cd973e7
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Mon Mar 16 15:29:52 2020 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon Mar 16 19:09:26 2020 +0100
make python warnings in our UITests error early
rather than erroring only on some of the buildbots (in particular one of
the daily buildbots seems to have this on by default)
And fix a invalid escape sequence we discover in the process.
Change-Id: Icd62dae2959e5117dec8949ce55dd484503fc446
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90565
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/solenv/gbuild/UITest.mk b/solenv/gbuild/UITest.mk
index f90a1abe1b21..e428dbd03c48 100644
--- a/solenv/gbuild/UITest.mk
+++ b/solenv/gbuild/UITest.mk
@@ -73,6 +73,7 @@ else
PYTHONPATH="$(PYPATH)" \
TestUserDir="$(call gb_Helper_make_url,$(dir $(call gb_UITest_get_target,$*)))" \
PYTHONDONTWRITEBYTECODE=0 \
+ PYTHONWARNINGS=error \
$(gb_TEST_ENV_VARS) \
$(gb_UITest_COMMAND) \
--soffice="$(gb_UITest_SOFFICEARG)" \
diff --git a/sw/qa/uitest/findReplace/findReplace.py b/sw/qa/uitest/findReplace/findReplace.py
index f465e9b44aed..83821ae8662b 100644
--- a/sw/qa/uitest/findReplace/findReplace.py
+++ b/sw/qa/uitest/findReplace/findReplace.py
@@ -126,7 +126,7 @@ class findReplace(UITestCase):
self.ui_test.execute_modeless_dialog_through_command(".uno:SearchDialog")
xDialog = self.xUITest.getTopFocusWindow()
searchterm = xDialog.getChild("searchterm")
- searchterm.executeAction("TYPE", mkPropertyValues({"TEXT":"T(est|other)\>"})) #find
+ searchterm.executeAction("TYPE", mkPropertyValues({"TEXT":"T(est|other)\\>"})) #find
replaceterm = xDialog.getChild("replaceterm")
replaceterm.executeAction("TYPE", mkPropertyValues({"TEXT":"replaced$1"})) #replace
regexp = xDialog.getChild("regexp")
More information about the Libreoffice-commits
mailing list