[Libreoffice-commits] core.git: sw/qa
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Mon Mar 25 15:38:39 UTC 2019
sw/qa/uitest/findReplace/findSimilarity.py | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
New commits:
commit 8bf87fe5112fbec54db1496b5037c43e24bc76fe
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Mar 25 10:41:54 2019 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Mar 25 16:38:16 2019 +0100
Fix one more get_url_for_data_file
Change-Id: I19d89ce28977f5a5e0749f9fa10e169016e6e176
Reviewed-on: https://gerrit.libreoffice.org/69649
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/sw/qa/uitest/findReplace/findSimilarity.py b/sw/qa/uitest/findReplace/findSimilarity.py
index 21775bd3e350..ac5b62fac499 100644
--- a/sw/qa/uitest/findReplace/findSimilarity.py
+++ b/sw/qa/uitest/findReplace/findSimilarity.py
@@ -12,12 +12,11 @@ from libreoffice.calc.document import get_cell_by_position
from libreoffice.uno.propertyvalue import mkPropertyValues
from uitest.uihelper.common import get_state_as_dict, type_text
from uitest.debug import sleep
-# import org.libreoffice.unotest
-# import pathlib
-from uitest.path import get_srcdir_url
+import org.libreoffice.unotest
+import pathlib
+
def get_url_for_data_file(file_name):
-# return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
- return get_srcdir_url() + "/sw/qa/uitest/writer_tests/data/" + file_name
+ return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
#Find similarities
More information about the Libreoffice-commits
mailing list