diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-03-29 18:35:54 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-04-03 08:23:44 +0200 |
commit | d76281864b0e83812c0edf7490b1e8271e89fff5 (patch) | |
tree | a84c6503db43cb3ec5c14bfc1849e11aa338fdd1 /uitest/writer_tests | |
parent | 20c680092fa2598feb4541b1c69a8389779dbae4 (diff) |
Create temp copies of test docs in Python/UITests
...where necessary, so the tests will succeed if SRCDIR is a read-only tree.
Change-Id: Iea4c52d5982d3eba079088ef1670ff557ce30c3f
Reviewed-on: https://gerrit.libreoffice.org/52122
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'uitest/writer_tests')
-rw-r--r-- | uitest/writer_tests/tdf104649.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/uitest/writer_tests/tdf104649.py b/uitest/writer_tests/tdf104649.py index a1593d387339..f6541feee5a4 100644 --- a/uitest/writer_tests/tdf104649.py +++ b/uitest/writer_tests/tdf104649.py @@ -5,10 +5,12 @@ # from uitest.framework import UITestCase -from uitest.path import get_srcdir_url + +import org.libreoffice.unotest +import pathlib def get_url_for_data_file(file_name): - return get_srcdir_url() + "/uitest/writer_tests/data/" + file_name + return pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri() class tdf104649(UITestCase): |