diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-03-04 13:41:23 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-03-04 16:00:17 +0100 |
commit | d515aaa11c42a9d5698380c2288ca7eb65228371 (patch) | |
tree | 41312e8d98abcd0aaaf9605ae6cf7010f04d675d /sc/qa/uitest/search_replace | |
parent | b5f686d818a0e0af1337af1aa736a31536b74e78 (diff) |
Fix some UITests to use copies of SRCDIR documents
...so that running those tests with a read-only SRCDIR succeeds. (Needed to
move sc/qa/uitest/calc_tests/data/tdf76731.ods to fit the changes made to
sc/UITest_statistics.mk; all documents used by that test need to be at the same
place.)
Change-Id: I5c4a28539b9bacde3ca8983502ceed8e4688c787
Reviewed-on: https://gerrit.libreoffice.org/68683
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc/qa/uitest/search_replace')
-rw-r--r-- | sc/qa/uitest/search_replace/tdf39959.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sc/qa/uitest/search_replace/tdf39959.py b/sc/qa/uitest/search_replace/tdf39959.py index 28b056a92470..1f7c6a7a7bb6 100644 --- a/sc/qa/uitest/search_replace/tdf39959.py +++ b/sc/qa/uitest/search_replace/tdf39959.py @@ -12,13 +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() + "/sc/qa/uitest/search_replace/data/" + file_name + return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri() #Bug 39959 - Find-and-replace doesn't search all tables anymore |